Updated Java version and expanded the build environment
This commit is contained in:
parent
96dcfb11f4
commit
3a476a0c83
|
|
@ -11,12 +11,12 @@ android {
|
||||||
ndkVersion = flutter.ndkVersion
|
ndkVersion = flutter.ndkVersion
|
||||||
|
|
||||||
compileOptions {
|
compileOptions {
|
||||||
sourceCompatibility = JavaVersion.VERSION_11
|
sourceCompatibility = JavaVersion.VERSION_17
|
||||||
targetCompatibility = JavaVersion.VERSION_11
|
targetCompatibility = JavaVersion.VERSION_17
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
jvmTarget = JavaVersion.VERSION_11.toString()
|
jvmTarget = JavaVersion.VERSION_17.toString()
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError
|
org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError
|
||||||
org.gradle.java.home=C:\\Program Files\\Microsoft\\jdk-17.0.17.10-hotspot
|
org.gradle.java.home=C:\\Program Files\\Eclipse Adoptium\\jdk-17.0.17.10-hotspot
|
||||||
|
|
||||||
android.useAndroidX=true
|
android.useAndroidX=true
|
||||||
android.enableJetifier=true
|
android.enableJetifier=true
|
||||||
|
|
||||||
|
systemProp.org.gradle.internal.http.connectionTimeout=120000
|
||||||
|
systemProp.org.gradle.internal.http.socketTimeout=120000
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
Running Gradle task 'assembleRelease'...
|
||||||
|
|
||||||
|
FAILURE: Build failed with an exception.
|
||||||
|
|
||||||
|
* What went wrong:
|
||||||
|
Value 'C:\Program Files\Microsoft\jdk-17.0.17.10-hotspot' given for org.gradle.java.home Gradle property is invalid (Java home supplied is invalid)
|
||||||
|
|
||||||
|
* Try:
|
||||||
|
> Run with --stacktrace option to get the stack trace.
|
||||||
|
> Run with --info or --debug option to get more log output.
|
||||||
|
> Run with --scan to get full insights.
|
||||||
|
> Get more help at https://help.gradle.org.
|
||||||
|
Running Gradle task 'assembleRelease'... 1,480ms
|
||||||
|
Gradle task assembleRelease failed with exit code 1
|
||||||
|
|
@ -0,0 +1,40 @@
|
||||||
|
Running Gradle task 'assembleRelease'...
|
||||||
|
|
||||||
|
FAILURE: Build failed with an exception.
|
||||||
|
|
||||||
|
* What went wrong:
|
||||||
|
Could not resolve all artifacts for configuration 'classpath'.
|
||||||
|
> Could not download tracker-31.7.3.jar (com.android.tools.analytics-library:tracker:31.7.3)
|
||||||
|
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/tracker/31.7.3/tracker-31.7.3.jar'.
|
||||||
|
> Read timed out
|
||||||
|
|
||||||
|
* Try:
|
||||||
|
> Run with --stacktrace option to get the stack trace.
|
||||||
|
> Run with --info or --debug option to get more log output.
|
||||||
|
> Run with --scan to get full insights.
|
||||||
|
> Get more help at https://help.gradle.org.
|
||||||
|
|
||||||
|
BUILD FAILED in 1m 57s
|
||||||
|
Running Gradle task 'assembleRelease'... 117.5s
|
||||||
|
[!] Gradle threw an error while downloading artifacts from the network.
|
||||||
|
Retrying Gradle Build: #1, wait time: 100ms
|
||||||
|
Running Gradle task 'assembleRelease'...
|
||||||
|
|
||||||
|
FAILURE: Build failed with an exception.
|
||||||
|
|
||||||
|
* What went wrong:
|
||||||
|
Could not resolve all artifacts for configuration 'classpath'.
|
||||||
|
> Could not download tracker-31.7.3.jar (com.android.tools.analytics-library:tracker:31.7.3)
|
||||||
|
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/tracker/31.7.3/tracker-31.7.3.jar'.
|
||||||
|
> Read timed out
|
||||||
|
|
||||||
|
* Try:
|
||||||
|
> Run with --stacktrace option to get the stack trace.
|
||||||
|
> Run with --info or --debug option to get more log output.
|
||||||
|
> Run with --scan to get full insights.
|
||||||
|
> Get more help at https://help.gradle.org.
|
||||||
|
|
||||||
|
BUILD FAILED in 1m 56s
|
||||||
|
Running Gradle task 'assembleRelease'... 117.2s
|
||||||
|
[!] Gradle threw an error while downloading artifacts from the network.
|
||||||
|
Gradle task assembleRelease failed with exit code 1
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
Running Gradle task 'assembleRelease'...
|
||||||
|
|
||||||
|
FAILURE: Build failed with an exception.
|
||||||
|
|
||||||
|
* What went wrong:
|
||||||
|
Could not resolve all artifacts for configuration 'classpath'.
|
||||||
|
> Could not download tracker-31.7.3.jar (com.android.tools.analytics-library:tracker:31.7.3)
|
||||||
|
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/tracker/31.7.3/tracker-31.7.3.jar'.
|
||||||
|
> Read timed out
|
||||||
|
|
||||||
|
* Try:
|
||||||
|
> Run with --stacktrace option to get the stack trace.
|
||||||
|
> Run with --info or --debug option to get more log output.
|
||||||
|
> Run with --scan to get full insights.
|
||||||
|
> Get more help at https://help.gradle.org.
|
||||||
|
|
||||||
|
BUILD FAILED in 6m 26s
|
||||||
|
Running Gradle task 'assembleRelease'... 387.2s
|
||||||
|
[!] Gradle threw an error while downloading artifacts from the network.
|
||||||
|
Retrying Gradle Build: #1, wait time: 100ms
|
||||||
Loading…
Reference in New Issue