To reproduce:
- Download purchased project from creative-tim and extract
npx expo prebuild
npx expo run:android
This will cause the following issue:
* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Failed to transform BlurView-version-2.0.3.aar (com.github.Dimezis:BlurView:version-2.0.3) to match attributes {artifactType=android-aar-metadata, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Could not find BlurView-version-2.0.3.aar (com.github.Dimezis:BlurView:version-2.0.3).
Searched in the following locations:
https://www.jitpack.io/com/github/Dimezis/BlurView/version-2.0.3/BlurView-version-2.0.3.aar
There is a temporary fix to this issue using patch-package here
After applying the fix the following build error happens:
> Task :expo-file-system:compileDebugKotlin FAILED
e: file:///Users/agoransson/Projects/creativetimofficial-soft-ui-pro-react-native-/node_modules/expo-file-system/android/src/main/java/expo/modules/filesystem/FileSystemModule.kt:465:18 Unresolved reference: throwingActivity
e: file:///Users/agoransson/Projects/creativetimofficial-soft-ui-pro-react-native-/node_modules/expo-file-system/android/src/main/java/expo/modules/filesystem/FileSystemModule.kt:708:24 Unresolved reference: throwingActivity
e: file:///Users/agoransson/Projects/creativetimofficial-soft-ui-pro-react-native-/node_modules/expo-file-system/android/src/main/java/expo/modules/filesystem/FileSystemModule.kt:862:18 Unresolved reference: throwingActivity
e: file:///Users/agoransson/Projects/creativetimofficial-soft-ui-pro-react-native-/node_modules/expo-file-system/android/src/main/java/expo/modules/filesystem/FileSystemModule.kt:863:21 Unresolved reference: throwingActivity
e: file:///Users/agoransson/Projects/creativetimofficial-soft-ui-pro-react-native-/node_modules/expo-file-system/android/src/main/java/expo/modules/filesystem/next/FileSystemFileHandle.kt:16:3 'sharedObjectDidRelease' overrides nothing
e: file:///Users/agoransson/Projects/creativetimofficial-soft-ui-pro-react-native-/node_modules/expo-file-system/android/src/main/java/expo/modules/filesystem/next/FileSystemNextModule.kt:8:37 Unresolved reference: await
e: file:///Users/agoransson/Projects/creativetimofficial-soft-ui-pro-react-native-/node_modules/expo-file-system/android/src/main/java/expo/modules/filesystem/next/FileSystemNextModule.kt:39:30 Unresolved reference: await
e: file:///Users/agoransson/Projects/creativetimofficial-soft-ui-pro-react-native-/node_modules/expo-file-system/android/src/main/java/expo/modules/filesystem/next/FileSystemNextModule.kt:60:12 Unresolved reference: byteStream
e: file:///Users/agoransson/Projects/creativetimofficial-soft-ui-pro-react-native-/node_modules/expo-file-system/android/src/main/java/expo/modules/filesystem/next/FileSystemNextModule.kt:60:31 Cannot infer a type for this parameter. Please specify it explicitly.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':expo-file-system:compileDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
> Compilation error. See log for more details
* 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 28s
351 actionable tasks: 199 executed, 120 from cache, 32 up-to-date
Error: /Users/agoransson/Projects/creativetimofficial-soft-ui-pro-react-native-/android/gradlew app:assembleDebug -x lint -x test --configure-on-demand --build-cache -PreactNativeDevServerPort=8081 -PreactNativeArchitectures=arm64-v8a,armeabi-v7a exited with non-zero code: 1
Error: /Users/agoransson/Projects/creativetimofficial-soft-ui-pro-react-native-/android/gradlew app:assembleDebug -x lint -x test --configure-on-demand --build-cache -PreactNativeDevServerPort=8081 -PreactNativeArchitectures=arm64-v8a,armeabi-v7a exited with non-zero code: 1
at ChildProcess.completionListener (/Users/agoransson/Projects/creativetimofficial-soft-ui-pro-react-native-/node_modules/@expo/spawn-async/src/spawnAsync.ts:67:13)
at Object.onceWrapper (node:events:633:26)
at ChildProcess.emit (node:events:518:28)
at maybeClose (node:internal/child_process:1105:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:305:5)
...
at spawnAsync (/Users/agoransson/Projects/creativetimofficial-soft-ui-pro-react-native-/node_modules/@expo/spawn-async/src/spawnAsync.ts:28:21)
at spawnGradleAsync (/Users/agoransson/Projects/creativetimofficial-soft-ui-pro-react-native-/node_modules/@expo/cli/src/start/platforms/android/gradle.ts:134:28)
at assembleAsync (/Users/agoransson/Projects/creativetimofficial-soft-ui-pro-react-native-/node_modules/@expo/cli/src/start/platforms/android/gradle.ts:83:16)
at runAndroidAsync (/Users/agoransson/Projects/creativetimofficial-soft-ui-pro-react-native-/node_modules/@expo/cli/src/run/android/runAndroidAsync.ts:48:24)
Can you help me fix this build issue with the template?
To reproduce:
npx expo prebuildnpx expo run:androidThis will cause the following issue:
There is a temporary fix to this issue using patch-package here
After applying the fix the following build error happens:
Can you help me fix this build issue with the template?