Open samkhan17 opened 1 year ago
I have also encounter the same problem when using expo to create a react-native project.
Below is the steps to reproduce the bug,
expo init
choose minimal template, then run the following command
npm install --save react-native-testfairy
cd android && gradle assemble
The error is
> Task :app:compressReleaseAssets
Execution optimizations have been disabled for task ':app:compressReleaseAssets' to ensure correctness due to the following reasons:
- Gradle detected a problem with the following location: '/Users/qdang/Desktop/Vinh/test/test-fairy-android/android/app/build/intermediates/assets/release/mergeReleaseAssets'. Reason: Task ':app:compressReleaseAssets' uses this output of task ':app:copyReleaseBundledJs' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
> Task :react-native-testfairy:verifyReleaseResources FAILED
w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-testfairy:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
> Android resource linking failed
ERROR:/Users/qdang/Desktop/Vinh/test/test-fairy-android/node_modules/react-native-testfairy/android/build/intermediates/merged_res/release/values/values.xml:2722: AAPT: error: resource android:attr/lStar not found.
I am using expo-cli version 6.0.6 react-native: 0.70.5 react-native-testfairy: 2.60.0
Hi @samkhan17 @qvd808 Please could you share your solution?
Try running it with ./gradlew app:assembleDebug
from ...node_modules/react-native-testfairy/android/build.gradle compileSdkVersion 28 targetSdkVersion 28 => compileSdkVersion 33 targetSdkVersion 33
Android build failed with the message
react v18.2.0 react-native v0.70 react-native-testfairy v2.60.0"
Please help I'm not able to build android app.