Tell us which versions you are using:
Tell us to which platform this issue is related
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
D:\Project\node_modules\react-native-image-crop-picker\android\build\intermediates\library_manifest\debug\AndroidManifest.xml:10:5-14:15: AAPT: error: unexpected element <queries> found in <manifest>.
Just open android studio, and try to run app, it will show this error
I have found same issue here. she downgrade to lower version, I am hoping to use latest version with your fix.
https://stackoverflow.com/questions/64022942/build-failing-after-installing-react-native-image-crop-picker
@PavanTank4631 The solution is there in the same stackoverflow link that you have provided:
No need to downgrade to 0.33.
Upgrade your gradle version by adding classpath 'com.android.tools.build:gradle:4.0.1' in your android/build.gradle file:
buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:4.0.1'
}
}
And also run cd android then ./gradlew clean (for mac) after upgrading and rebuild the app. The issue will be gone.
gradlew clean
if you still have some new complicated errors you can also delete the build file in android/app/build and run the app it will then work fine
@ivpusic Hello, can this issue be addressed to maintainers? Thanks a lot
its not working Plz address the issue ASAP....
I had to do the following to get it working:
services.gradle.org/distributions/gradle-6.1.1-all.zip (upgrade to version 6)I am using react-native v0.61.5
Minimum Gradle version if you are using react-native-image-crop-picker >= 0.35.0
3.3.3
3.4.3
3.5.4
3.6.4
4.0.1
Reference for more details https://github.com/ivpusic/react-native-image-crop-picker/issues/1406
I have tried out all the above ones. Not working
maybe try also ./gradlew clean, ./gradlew cleanBuildCache from android folder
Still the issue is persisting
@ivpusic This is not a cache problem. Issue reproducible locally and on CI for all build from scratch, please reopen
P.S. Upgrade gradle to 4.0.1 fixed the issue
classpath('com.android.tools.build:gradle:4.0.1') in android/build.gradle
gradle upgrade is required in order to use 0.35.0 version. if you cannot upgrade, please use version <0.35.0
I'm having this issue still.
I have done adding classpath('com.android.tools.build:gradle:4.0.1') in android/build.gradle. And I started running react-native run-adroid. It is stuck at 99% :app:installDebug. What should I do?
I upgraded to classpath('com.android.tools.build:gradle:4.0.1') it told me to update the gradle-wrapper.properties distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip. It managed to work on debug mode, however, when generating the release apk after ./gradlew clean and ./gradlew assembleRelease , the app crashes the second it opens!! any idea why upgrading the gradle causes this immediate crash on release mode but not on debug mode??
Most helpful comment
@PavanTank4631 The solution is there in the same stackoverflow link that you have provided:
No need to downgrade to 0.33.
Upgrade your
gradleversion by addingclasspath 'com.android.tools.build:gradle:4.0.1'in your android/build.gradle file:buildscript { dependencies { classpath 'com.android.tools.build:gradle:4.0.1' } }