Hi, I am having a trouble in building my project. To comply with Google Playstore new rule to support 64-bit codes, I upgraded my SDK from 32 to 33. But then I got errors in building it now.
No assets to upload, skipped.
Processing asset bundle patterns:
- C:\Workspace\ReactNativeProjects\hkshopu-app\**\*
Webpack is not running.
Cannot read property 'forEach' of undefined
I changed my
"assetBundlePatterns": [
"**/*"
],
to
"assetBundlePatterns": [
"assets/*"
],
And it proceeds to app building. But still it failed in the middle of the process with this error:
> Task :app:mergeReleaseResources FAILED
[stderr] FAILURE: Build failed with an exception.
[stderr] * What went wrong:
[stderr] Execution failed for task ':app:mergeReleaseResources'.
[stderr] > java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-3.3.2-5309881-linux Daemon #4: Unexpected error during compile '/app/turtle/workingdir/android/sdk33/android-shell-app/app/src/main/res/drawable-mdpi/shell_launch_background_image.png', attempting to stop daemon.
[stderr] This should not happen under normal circumstances, please file an issue if it does.
[stderr] * Try:
[stderr] 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.
[stderr] * Get more help at https://help.gradle.org
[stderr] BUILD FAILED in 36s
17 actionable tasks: 17 executed
Error: ./gradlew exited with non-zero code: 1
at ChildProcess.completionListener (/app/turtle/node_modules/@expo/xdl/node_modules/@expo/spawn-async/build/spawnAsync.js:52:23)
at Object.onceWrapper (events.js:317:30)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:915:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
...
at spawnAsync (/app/turtle/node_modules/@expo/xdl/node_modules/@expo/spawn-async/build/spawnAsync.js:17:21)
at /app/turtle/node_modules/@expo/xdl/build/detach/ExponentTools.js:78:71
at Generator.next (<anonymous>)
at step (/app/turtle/node_modules/@expo/xdl/build/detach/ExponentTools.js:261:191)
at /app/turtle/node_modules/@expo/xdl/build/detach/ExponentTools.js:261:437
at new Promise (<anonymous>)
at /app/turtle/node_modules/@expo/xdl/build/detach/ExponentTools.js:261:99
at spawnAsyncThrowError (/app/turtle/node_modules/@expo/xdl/build/detach/ExponentTools.js:89:18)
at /app/turtle/node_modules/@expo/xdl/build/detach/AndroidShellApp.js:466:13
at Generator.next (<anonymous>)
at step (/app/turtle/node_modules/@expo/xdl/build/detach/AndroidShellApp.js:656:191)
at /app/turtle/node_modules/@expo/xdl/build/detach/AndroidShellApp.js:656:361
at <anonymous>
Well, when I upgraded the app from sdk32 to sdk33, I did not do any changes. But if you are asking if the splash screen was changed before the upgrade, YES. I changed the image but the filename remains the same.