Good night everyone, how are you?
I have a project (Managed) in Expo SDK43 where I can generate the binary for iOS and I can’t do it on Android anymore.
I tried it on the Expo service and there are also errors when I generate binary for Android.
Below are the logs on the Expo service:
Build 2fede57d
```
> Task :app:compressReleaseAssets
```
134
```
> Task :app:processReleaseResources
```
135
```
> Task :expo:compileReleaseKotlin
```
136
```
w: /app/turtle/workingdir/android/sdk43/packages/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt: (134, 38): Unchecked cast: Any! to T
```
137
```
w: /app/turtle/workingdir/android/sdk43/packages/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt: (148, 45): Unchecked cast: Any! to T
```
138
```
w: /app/turtle/workingdir/android/sdk43/packages/expo/android/src/main/java/expo/modules/ReactNativeHostWrapper.kt: (15, 37): 'UIImplementationProvider' is deprecated. Deprecated in Java
```
139
```
w: /app/turtle/workingdir/android/sdk43/packages/expo/android/src/main/java/expo/modules/ReactNativeHostWrapper.kt: (42, 47): 'UIImplementationProvider' is deprecated. Deprecated in Java
```
140
```
w: /app/turtle/workingdir/android/sdk43/packages/expo/android/src/main/java/expo/modules/ReactNativeHostWrapper.kt: (100, 34): Unchecked cast: Any! to T
```
141
```
> Task :expo:compileReleaseJavaWithJavac
```
142
```
> Task :expo:mergeReleaseGeneratedProguardFiles
```
143
```
> Task :expo:exportReleaseConsumerProguardFiles
```
144
```
> Task :expo:bundleLibCompileToJarRelease
```
145
```
> Task :expo:bundleLibResRelease
```
146
```
> Task :expo:bundleLibRuntimeToJarRelease
```
147
```
> Task :app:compileReleaseKotlin
```
148
```
w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
```
149
```
/root/.gradle/caches/transforms-3/6b1fe43bf07805782e2087b4ab0569c8/transformed/jetified-kotlin-stdlib-jdk8-1.5.20.jar (version 1.5)
```
150
```
/root/.gradle/caches/transforms-3/f99a28ef2bf4c1e55f02d14aee52e153/transformed/jetified-kotlin-stdlib-jdk7-1.5.20.jar (version 1.5)
```
151
```
/root/.gradle/caches/transforms-3/b1d5eaf82bcc414f60a23e6ce8ca9028/transformed/jetified-kotlin-stdlib-1.5.20.jar (version 1.5)
```
152
```
/root/.gradle/caches/transforms-3/ae0443e6f0c1162fc1855786c76a6156/transformed/jetified-kotlin-reflect-1.4.21.jar (version 1.4)
```
153
```
/root/.gradle/caches/transforms-3/f9ad13b52f5d4f35b801fd0228209942/transformed/jetified-kotlin-stdlib-common-1.5.20.jar (version 1.5)
```
154
```
w: Some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath
```
155
```
> Task :app:compileReleaseJavaWithJavac
```
156
```
> Task :app:compileReleaseSources
```
157
```
> Task :app:lintVitalRelease
```
158[stderr]
```
Could not load custom lint check jar file /root/.gradle/caches/transforms-3/b7b081b0ef20f0808f147dd05f365c64/transformed/jetified-ui-graphics-1.0.0-rc02/jars/lint.jar
```
159[stderr]
```
java.lang.NoClassDefFoundError: com/android/tools/lint/client/api/Vendor
```
160[stderr]
```
at androidx.compose.ui.graphics.lint.UiGraphicsIssueRegistry.<init>(UiGraphicsIssueRegistry.kt:34)
```
161[stderr]
```
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
```
162[stderr]
```
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
```
163[stderr]
```
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
```
164[stderr]
```
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
```
165[stderr]
```
at java.lang.Class.newInstance(Class.java:442)
```
166[stderr]
```
at com.android.tools.lint.client.api.JarFileIssueRegistry$Factory.loadIssueRegistry(JarFileIssueRegistry.kt:200)
```
167[stderr]
```
at com.android.tools.lint.client.api.JarFileIssueRegistry$Factory.get(JarFileIssueRegistry.kt:152)
```
168[stderr]
```
at com.android.tools.lint.client.api.JarFileIssueRegistry$Factory.get(JarFileIssueRegistry.kt:116)
```
169[stderr]
```
at com.android.tools.lint.client.api.LintDriver.registerCustomDetectors(LintDriver.kt:494)
```
..... much lines!!!
```
... 155 more
```
And I tried it on my machine too:
Dec 9 19:55:09 turtle[35094] INFO: FAILURE: Build failed with an exception.
platform: "android"
buildPhase: "running gradle"
source: "stderr"
Dec 9 19:55:09 turtle[35094] INFO: * Where:
platform: "android"
buildPhase: "running gradle"
source: "stderr"
Dec 9 19:55:09 turtle[35094] INFO: Settings file '/home/caca/.turtle/workingdir/android/sdk43/android-shell-app/settings.gradle' line: 12
platform: "android"
buildPhase: "running gradle"
source: "stderr"
Dec 9 19:55:09 turtle[35094] INFO: * What went wrong:
platform: "android"
buildPhase: "running gradle"
source: "stderr"
Dec 9 19:55:09 turtle[35094] INFO: A problem occurred evaluating settings 'android-shell-app'.
platform: "android"
buildPhase: "running gradle"
source: "stderr"
Dec 9 19:55:09 turtle[35094] INFO: > String index out of range: 0
platform: "android"
buildPhase: "running gradle"
source: "stderr"
Dec 9 19:55:09 turtle[35094] INFO: * Try:
platform: "android"
buildPhase: "running gradle"
source: "stderr"
Dec 9 19:55:09 turtle[35094] INFO: 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.
platform: "android"
buildPhase: "running gradle"
source: "stderr"
Dec 9 19:55:09 turtle[35094] INFO: * Get more help at https://help.gradle.org
platform: "android"
buildPhase: "running gradle"
source: "stderr"
Dec 9 19:55:09 turtle[35094] INFO: BUILD FAILED in 606ms
platform: "android"
buildPhase: "running gradle"
source: "stderr"
Dec 9 19:55:09 turtle[35094] ERROR: Error: ./gradlew exited with non-zero code: 1
at ChildProcess.completionListener (/home/caca/.nvm/versions/node/v14.18.2/lib/node_modules/turtle-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:65:13)
at Object.onceWrapper (events.js:520:26)
at ChildProcess.emit (events.js:400:28)
at ChildProcess.emit (domain.js:475:12)
at maybeClose (internal/child_process.js:1058:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:293:5)
...
at spawnAsync (/home/caca/.nvm/versions/node/v14.18.2/lib/node_modules/turtle-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:26:19)
at spawnAsyncThrowError (/@expo/xdl@59.1.7/src/detach/ExponentTools.ts:111:19)
at buildShellAppAsync (/@expo/xdl@59.1.7/src/detach/AndroidShellApp.js:1493:11)
at Object.createAndroidShellAppAsync (/@expo/xdl@59.1.7/src/detach/AndroidShellApp.js:381:5)
at runShellAppBuilder (/home/caca/.nvm/versions/node/v14.18.2/lib/node_modules/turtle-cli/src/builders/android.ts:91:5)
at buildAndroid (/home/caca/.nvm/versions/node/v14.18.2/lib/node_modules/turtle-cli/src/builders/android.ts:23:26)
at /home/caca/.nvm/versions/node/v14.18.2/lib/node_modules/turtle-cli/src/bin/utils/builder.ts:87:7
at Command.<anonymous> (/home/caca/.nvm/versions/node/v14.18.2/lib/node_modules/turtle-cli/src/bin/index.ts:23:12)
platform: "android"
Dec 9 19:55:09 turtle[35094] ERROR: Failed to build standalone app
err: Error: ./gradlew exited with non-zero code: 1
at ChildProcess.completionListener (/home/caca/.nvm/versions/node/v14.18.2/lib/node_modules/turtle-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:65:13)
at Object.onceWrapper (events.js:520:26)
at ChildProcess.emit (events.js:400:28)
at ChildProcess.emit (domain.js:475:12)
at maybeClose (internal/child_process.js:1058:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:293:5)
...
at spawnAsync (/home/caca/.nvm/versions/node/v14.18.2/lib/node_modules/turtle-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:26:19)
at spawnAsyncThrowError (/@expo/xdl@59.1.7/src/detach/ExponentTools.ts:111:19)
at buildShellAppAsync (/@expo/xdl@59.1.7/src/detach/AndroidShellApp.js:1493:11)
at Object.createAndroidShellAppAsync (/@expo/xdl@59.1.7/src/detach/AndroidShellApp.js:381:5)
at runShellAppBuilder (/home/caca/.nvm/versions/node/v14.18.2/lib/node_modules/turtle-cli/src/builders/android.ts:91:5)
at buildAndroid (/home/caca/.nvm/versions/node/v14.18.2/lib/node_modules/turtle-cli/src/builders/android.ts:23:26)
at /home/caca/.nvm/versions/node/v14.18.2/lib/node_modules/turtle-cli/src/bin/utils/builder.ts:87:7
at Command.<anonymous> (/home/caca/.nvm/versions/node/v14.18.2/lib/node_modules/turtle-cli/src/bin/index.ts:23:12)
platform: "android"
caca@zumit:~/diretorio-para-compilar/za$
Any idea? :-/
Thanks