LoginSignup
0
2

More than 5 years have passed since last update.

AndroidStudioでGoogleMapテンプレートをビルドしようとすると、Files\Java\jdkXXX\bin\java.exe'' finished with non-zero exit value 2と怒られる

Posted at

play-services 丸々コンパイルすることでエラーが発生しているので、必要なMap機能のみ読み込もう

build.gradle
dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:24.1.1'
    compile 'com.google.android.gms:play-services-maps:9.4.0'
}

以下の記事を参考にしました。
http://stackoverflow.com/questions/38152192/android-studio-why-am-i-getting-multi-dex-error-on-brand-new-google-maps-api-pr

デフォルトテンプレートを使用したらエラー出るとか、GoogleさんドS過ぎると思う。

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2