Skip to content

Commit 7c90a9b

Browse files
authored
Upgrade Java version from react-native/android to Java 17 (#23066)
### Description Upgrade Java version from react-native/android to Java 17. This PR does not update the e2e Java 17 version
1 parent f35924a commit 7c90a9b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

js/react_native/android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ android {
127127
disable 'GradleCompatible'
128128
}
129129
compileOptions {
130-
sourceCompatibility JavaVersion.VERSION_1_8
131-
targetCompatibility JavaVersion.VERSION_1_8
130+
sourceCompatibility JavaVersion.VERSION_17
131+
targetCompatibility JavaVersion.VERSION_17
132132
}
133133

134134
sourceSets {

js/react_native/android/gradle.properties

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Specifies the JVM arguments used for the daemon process.
55
# The setting is particularly useful for tweaking memory settings.
66
# Default value: -Xmx1024m -XX:MaxPermSize=256m
7-
org.gradle.jvmargs=-Xmx4096m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
7+
org.gradle.jvmargs=-Xmx4096m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -Djavax.xml.accessExternalSchema=all -Djavax.xml.accessExternalDTD=all
88
#
99
# When configured, Gradle will run in incubating parallel mode.
1010
# This option should only be used with decoupled projects. More details, visit
@@ -17,3 +17,7 @@ OnnxruntimeModule_buildToolsVersion=29.0.2
1717
OnnxruntimeModule_compileSdkVersion=34
1818
OnnxruntimeModule_minSdkVersion=24
1919
OnnxruntimeModule_targetSdkVersion=34
20+
21+
systemProp.javax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
22+
systemProp.javax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
23+
systemProp.javax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl

0 commit comments

Comments
 (0)