Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execution failed for task ':react-native-testfairy:verifyReleaseResources' #48

Open
samkhan17 opened this issue Nov 2, 2022 · 4 comments

Comments

@samkhan17
Copy link

samkhan17 commented Nov 2, 2022

Android build failed with the message

A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
Android resource linking failed
ERROR:/*******/node_modules/react-native-testfairy/android/build/intermediates/merged_res/release/values/values.xml:2722: AAPT: error: resource android:attr/lStar not found.

react v18.2.0
react-native v0.70
react-native-testfairy v2.60.0"

Please help I'm not able to build android app.

@qvd808
Copy link

qvd808 commented Nov 22, 2022

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

@angelnunezsalazar
Copy link

Hi @samkhan17 @qvd808
Please could you share your solution?

@Panda-ref
Copy link

Try running it with ./gradlew app:assembleDebug

@ismanovN1
Copy link

from ...node_modules/react-native-testfairy/android/build.gradle
compileSdkVersion 28
targetSdkVersion 28
=>
compileSdkVersion 33
targetSdkVersion 33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants