react-native-image-crop-picker: Build failing after installing react-native-image-crop-picker

Version

Tell us which versions you are using:

  • react-native-image-crop-picker v0.35.0
  • react-native v0.63.2

Platform

Tell us to which platform this issue is related

  • Android => Not working
  • IOS => Working

Expected behaviour

Actual behaviour

  • What went wrong:
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>.

Steps to reproduce

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

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 18
  • Comments: 21 (3 by maintainers)

Most upvoted comments

@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' } }

I had to do the following to get it working:

  1. Upgrade your gradle version by adding classpath ‘com.android.tools.build:gradle:4.0.1’ in your android/build.gradle
  2. In gradle-wrapper.properties, update the path to 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

And also run cd android then ./gradlew clean (for mac) after upgrading and rebuild the app. The issue will be gone.

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

maybe try also ./gradlew clean, ./gradlew cleanBuildCache from android folder

I have tried out all the above ones. Not working