Closed rajanmakwana closed 2 years ago
Could you give more details please. Which version of the lib do you use?
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.
What went wrong: Execution failed for task ':react-native-zoom-us:transformNativeLibsWithSyncJniLibsForRelease'.
java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file
What went wrong: Execution failed for task ':react-native-zoom-us:mergeReleaseJavaResource'.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade java.lang.IllegalArgumentException (no error message)
Get more help at https://help.gradle.org
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 .
@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.
it seems it is related to https://github.com/mieszko4/react-native-zoom-us/pull/59/files
@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
@rajanmakwana I also have this error
I changed the version to 5.5.0 . but i have this error --->Program type already present: us.zoom.androidlib.BuildConfig
@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
@mieszko4 thank you
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.
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?
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
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)
when create release build shows this error :react-native-zoom-us:mergeReleaseJavaResource FAILED