We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 198ce4a commit 9b286e2Copy full SHA for 9b286e2
AndroidKeystore/upload-keystore.jks
2.62 KB
Assets/AndroidIl2cppPatchDemo/Editor/AndroidBuilder.cs
@@ -369,6 +369,17 @@ public static bool GenerateBuildScripts()
369
.Replace(".apk", ".aab")
370
.Replace("apk", "bundle"));
371
372
+ // gradle java home
373
+ string gradleConfigDir = ANDROID_PROJECT_PATH + "/.gradle/";
374
+ if (!Directory.Exists(gradleConfigDir)) { Directory.CreateDirectory(gradleConfigDir); }
375
+ string gradleConfigFile = gradleConfigDir + "config.properties";
376
+ string content = "java.home=" + jdkPath + "\n";
377
+ File.WriteAllText(gradleConfigFile, content
378
+ .Replace("\\", "\\\\")
379
+ .Replace("/", "\\\\")
380
+ .Replace(":", "\\:")
381
+ );
382
+
383
return true;
384
}
385
0 commit comments