2016-04-27 10 views
2

:この後ARToolKit ARSimpleProjエラー

Failed to update the version of the Android Gradle plugin. 
Please click 'OK' to perform a textual search and then update the build files manually. 

を、私はこのエラーを取得しています:

Error:(58, 0) Gradle DSL method not found: 'android()' 
Possible causes: 
* The project 'ARSimpleProj' may be using a version of the Android Gradle plug-in that does not contain the method (e.g. 'testCompile' was added in 1.1.0). Fix plugin version and sync project 
* The project 'ARSimpleProj' may be using a version of Gradle that does not contain the method. Open Gradle wrapper file 
* The build file may be missing a Gradle plugin. Apply Gradle plugin. 

build.gradleファイル(AS_Migration文書に示されているように)のandroid->buildToolsVersionと依存関係タグを最上位のレベルから削除しようとしましたが、それでも動作しません。

答えて

1

私はついにそれを動作させる。 Androidスタジオでプロジェクトを開くときに、Android Gradle Plugin Updateの推奨事項に「後で通知する」を選択します。その後、携帯電話でアプリケーションを実行してインストールすることができました。

1

Project StructureJDK 1.7を使用していることを確認してください。 Android用ARToolkitでJDK 1.8を使用すると問題が発生しました。

関連する問題