react-native-image-picker icon indicating copy to clipboard operation
react-native-image-picker copied to clipboard

Program type already present: androidx.versionedparcelable.NonParcelField

Open corradio opened this issue 7 years ago • 8 comments

Bug

During gradlew assembleRelease I get the following error:

Task :app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED D8: Program type already present: androidx.versionedparcelable.NonParcelField

Using RN 0.59.10 and [email protected]

I was able to fix by adding those two lines to gradle.properties in react-native-image-picker:

android.useAndroidX=false
android.enableJetifier=false

Any recommendations moving forward?

corradio avatar Jul 08 '19 09:07 corradio

same issue here!

javi10823 avatar Jul 13 '19 19:07 javi10823

Same issue, nobody found a solution ?

AlessioCamm avatar Jul 25 '19 15:07 AlessioCamm

same issue is here

EngrJavedAbrar avatar Aug 07 '19 10:08 EngrJavedAbrar

Same issue is here, i dont want to migrate AndroidX, How i can solve this ?

johndig0027 avatar Aug 14 '19 08:08 johndig0027

Same issue here. Anyway found a solution for this part?

Update how I resolve it. Because my RN project has lots of dependencies and I don't want to move the support AndroidX. So I checked the release version for this repo. And found it has the breaking change from 1.0.0. And using a version before that saved my day.

yarn remove react-native-image-picker
yarn add [email protected]

So this version works for me:

"react": "^16.9.0",
"react-native": "0.59.2",
"react-native-image-picker": "0.28.0",

Hope this solution could help you.

gongmingqm10 avatar Sep 09 '19 05:09 gongmingqm10

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and I will leave this open.

stale[bot] avatar Nov 08 '19 06:11 stale[bot]

Closing this issue after a prolonged period of inactivity. Fell free to reopen this issue, if this still affecting you.

stale[bot] avatar Nov 15 '19 07:11 stale[bot]

Same issue here for "version": "2.3.1" :((( Only for Android.

AurangsEmpire avatar May 29 '20 07:05 AurangsEmpire