mieszko4 / react-native-zoom-us

MIT License
122 stars 116 forks source link

can't create release apk #62

Closed rajanmakwana closed 2 years ago

rajanmakwana commented 3 years ago

when create release build shows this error :react-native-zoom-us:mergeReleaseJavaResource FAILED

mieszko4 commented 3 years ago

Could you give more details please. Which version of the lib do you use?

rajanmakwana commented 3 years ago

work in debug mode fine but when build release it shows error like

Task :react-native-zoom-us:transformNativeLibsWithSyncJniLibsForRelease FAILED Task :react-native-zoom-us:mergeReleaseJavaResource FAILED

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

2: Task failed with an exception.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.2/userguide/command_line_interface.html#sec:command_line_warnings

========= Library version = react-native-zoom-us": "^5.4.0"

On Mon, 1 Mar 2021 at 13:42, mieszko4 notifications@github.com wrote:

Could you give more details please. Which version of the lib do you use?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mieszko4/react-native-zoom-us/issues/62#issuecomment-787747828, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATAPNBELOBLMCKSCHVZFPJTTBND5XANCNFSM4YKADDGQ .

jcamins commented 3 years ago

@mieszko4 is this the error that you were getting when you used fileTree on release builds previously? I've never seen it, but that's the most likely explanation I can think of.

mieszko4 commented 3 years ago

it seems it is related to https://github.com/mieszko4/react-native-zoom-us/pull/59/files

mieszko4 commented 3 years ago

@rajanmakwana I've reverted this pr and published 5.4.2 so please try with that version. You can also try with 5.5.0 which is the latest version that includes the fix

fatemeh471 commented 3 years ago

@rajanmakwana I also have this error

fatemeh471 commented 3 years ago

I changed the version to 5.5.0 . but i have this error --->Program type already present: us.zoom.androidlib.BuildConfig

mieszko4 commented 3 years ago

@fatemeh471 Have you cleaned the project? cd android && ./gradlew clean

Also, note that here is a working example: https://github.com/mieszko4/react-native-zoom-us-test

fatemeh471 commented 3 years ago

@mieszko4 thank you

ahadtechcarrot commented 2 years ago

when create release build shows this error :react-native-zoom-us:mergeReleaseJavaResource FAILED

I got this similar issue while generating the release build in Android, I am providing the following error message with more information :

> Task :app:mergeReleaseResources FAILED [raw/node_modules_reactnativeurlpolyfill_package] /Users/ahad/Downloads/react-native-zoom-us-test-master-1/android/app/src/main/res/raw/node_modules_reactnativeurlpolyfill_package.json [raw/node_modules_reactnativeurlpolyfill_package] /Users/ahad/Downloads/react-native-zoom-us-test-master-1/android/app/build/generated/res/react/release/raw/node_modules_reactnativeurlpolyfill_package.json: Resource and asset merger: Duplicate resources [raw/app] /Users/ahad/Downloads/react-native-zoom-us-test-master-1/android/app/src/main/res/raw/app.json [raw/app] /Users/ahad/Downloads/react-native-zoom-us-test-master-1/android/app/build/generated/res/react/release/raw/app.json: Resource and asset merger: Duplicate resources [raw/api_sdkjwt] /Users/ahad/Downloads/react-native-zoom-us-test-master-1/android/app/src/main/res/raw/api_sdkjwt.json [raw/api_sdkjwt] /Users/ahad/Downloads/react-native-zoom-us-test-master-1/android/app/build/generated/res/react/release/raw/api_sdkjwt.json: Resource and asset merger: Duplicate resources

Library Versions : "react": "17.0.1", "react-native": "0.64.0", "react-native-url-polyfill": "^1.3.0", "react-native-zoom-us": "5.8.4"

@mieszko4 need your support on this. Thank you.

mieszko4 commented 2 years ago

This is not really enough info for me to help you. Does building the example app works for you - https://github.com/mieszko4/react-native-zoom-us-test?

mieszko4 commented 2 years ago

And it does not seem to be related to the lib - maybe you need to clean up the folder. Or look on stack overflow, e.g. https://stackoverflow.com/questions/53239705/react-native-error-duplicate-resources-android seems promising

mieszko4 commented 2 years ago

Please check with the newest version 6.1.1 - It has the newest version of android/ios native sdk. I've done the smoke test for that version (https://github.com/mieszko4/react-native-zoom-us-test#smoke-test-procedure)