When I try to build a Google Map template in Android Studio, I get angry with Files \ Java \ jdkXXX \ bin \ java.exe'' finished with non-zero exit value 2.

Since an error has occurred by compiling play-services in its entirety, let's load only the necessary Map function.

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'
}

I referred to the following article. http://stackoverflow.com/questions/38152192/android-studio-why-am-i-getting-multi-dex-error-on-brand-new-google-maps-api-pr

If you use the default template, you will get an error, or Google will be too sadistic.

Recommended Posts

When I try to build a Google Map template in Android Studio, I get angry with Files \ Java \ jdkXXX \ bin \ java.exe'' finished with non-zero exit value 2.
When I try to build a Google Map template in Android Studio, I get angry with Files \ Java \ jdkXXX \ bin \ java.exe'' finished with non-zero exit value 2.
When I push to Heroku, I get angry with Precompiling assets failed.
If you get angry with java.lang.UnsupportedClassVersionError: com / android / build / gradle / AppPlugin: Unsupported major.minor version 52.0 in built gradle after Android Studio 2.3
I tried to create a simple map app in Android Studio
I want to get along with Map [Java beginner]
When you want to implement Java library testing in Spock with multi-module in Gradle in Android Studio 3
Use Java included with Android Studio to build React Native
Even in Java, I want to output true with a == 1 && a == 2 && a == 3
When I push to Heroku, I get angry with Precompiling assets failed.
I get a Ruby version error when I try to start Rails.
Source to display character array with numberPicker in Android studio (Java)