Program type already present: androidx.versionedparcelable.NonParcelField
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?
same issue here!
Same issue, nobody found a solution ?
same issue is here
Same issue is here, i dont want to migrate AndroidX, How i can solve this ?
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.
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.
Closing this issue after a prolonged period of inactivity. Fell free to reopen this issue, if this still affecting you.
Same issue here for "version": "2.3.1" :((( Only for Android.