@@ -63,7 +63,7 @@ class AndroidBuild extends JavaBuild {
63
63
// Versions of all required dependencies
64
64
static public String TARGET_SDK ;
65
65
static public String TARGET_PLATFORM ;
66
- static public String GRADLE_VER ;
66
+ static public String GRADLE_PLUGIN_VER ;
67
67
static public String APPCOMPAT_VER ;
68
68
static public String V4LEGACY_VER ;
69
69
static public String PLAY_SERVICES_VER ;
@@ -293,7 +293,7 @@ private void createTopModule(String projectModules)
293
293
294
294
File buildTemplate = mode .getContentFile ("templates/" + TOP_GRADLE_BUILD_TEMPLATE );
295
295
File buildlFile = new File (tmpFolder , "build.gradle" );
296
- replaceMap .put ("@@gradle_version @@" , GRADLE_VER );
296
+ replaceMap .put ("@@gradle_plugin_version @@" , GRADLE_PLUGIN_VER );
297
297
AndroidUtil .createFileFromTemplate (buildTemplate , buildlFile , replaceMap );
298
298
299
299
File gradlePropsTemplate = mode .getContentFile ("templates/" + GRADLE_PROPERTIES_TEMPLATE );
@@ -913,11 +913,11 @@ static public void initVersions(File file) {
913
913
// Versions strings of all dependencies are stored in a preferences file so they can be changed by the
914
914
// user without having to rebuild/reinstall the mode.
915
915
916
- GRADLE_VER = Preferences .get ("android.gradle " );
917
- String defGradleVersion = props .getProperty ("gradle" );
918
- if (GRADLE_VER == null || PApplet .parseInt (GRADLE_VER ) != PApplet .parseInt (defGradleVersion )) {
919
- GRADLE_VER = defGradleVersion ;
920
- Preferences .set ("android.gradle " , GRADLE_VER );
916
+ GRADLE_PLUGIN_VER = Preferences .get ("android.gradle_plugin " );
917
+ String defGradlePluginVersion = props .getProperty ("android- gradle-plugin " );
918
+ if (GRADLE_PLUGIN_VER == null || PApplet .parseInt (GRADLE_PLUGIN_VER ) != PApplet .parseInt (defGradlePluginVersion )) {
919
+ GRADLE_PLUGIN_VER = defGradlePluginVersion ;
920
+ Preferences .set ("android.gradle_plugin " , GRADLE_PLUGIN_VER );
921
921
}
922
922
923
923
TARGET_SDK = Preferences .get ("android.sdk.target" );
0 commit comments