Android Studio: Welche Compiler-Einstellungen beim Einbinden von Google Maps
Ich habe ein neues Projekt in Android Studio erstellt und eine Google Maps-Aktivität hinzugefügt.
Ich bekomme folgende Warnungen:
warning: com/google/android/gms/maps/GoogleMap.class(com/google/android/gms/maps:GoogleMap.class): major version 51 is newer than 50, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
warning: com/google/android/gms/maps/SupportMapFragment.class(com/google/android/gms/maps:SupportMapFragment.class): major version 51 is newer than 50, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
warning: com/google/android/gms/maps/model/LatLng.class(com/google/android/gms/maps/model:LatLng.class): major version 51 is newer than 50, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
warning: com/google/android/gms/maps/model/MarkerOptions.class(com/google/android/gms/maps/model:MarkerOptions.class): major version 51 is newer than 50, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
warning: com/google/android/gms/maps/model/Marker.class(com/google/android/gms/maps/model:Marker.class): major version 51 is newer than 50, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
Ich vermute, ich habe ein JDK-Missmatch oder so. Ich habe JDK 7 installiert und wenn ich Javac-Version mache, sehe ich 1.7.0_65. Ich habe in den Voreinstellungen von Android Studio die Bytecode-Version des Projekts geändert, aber das hat diese Warnungen nicht geändert.
Mein build.gradle hat das
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
// You must install or update the Google Repository through the SDK manager to use this dependency.
compile 'com.google.android.gms:play-services:5.0.77'
compile 'com.android.support:support-v13:18.0.+'
}
Was muss ich tun, um diese Warnungen zu beheben, oder sollte ich sie in Android Studio ignorieren?