浏览代码

Update Android custom template build configuration.

(cherry picked from commit 9c11076a209a2427a54d04abe76373587dc9edcf)
fhuya 5 年之前
父节点
当前提交
fd045b8b91
共有 2 个文件被更改,包括 7 次插入0 次删除
  1. 5 0
      platform/android/java/app/build.gradle
  2. 2 0
      platform/android/java/app/settings.gradle

+ 5 - 0
platform/android/java/app/build.gradle

@@ -68,6 +68,11 @@ android {
     compileSdkVersion versions.compileSdk
     buildToolsVersion versions.buildTools
 
+    compileOptions {
+        sourceCompatibility 1.8
+        targetCompatibility 1.8
+    }
+
     defaultConfig {
         // Feel free to modify the application id to your own.
         applicationId getExportPackageName()

+ 2 - 0
platform/android/java/app/settings.gradle

@@ -0,0 +1,2 @@
+// Empty settings.gradle file to denote this directory as being the root project
+// of the Godot custom build.