Hi guys,
I am very new to Ignite. I have followed the instruction in README.md file to initialize ignite app.
After executing this command: "react-native run-android", I got this failure notification from react-native:
Execution failed for task ':app:dexDebug'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with non-zero exit value 2
I have searched for a solution on stackoverflow and edit build.gradle as answered in this thread:
http://stackoverflow.com/questions/29460443/execution-failed-for-task-appdexdebug-com-android-ide-common-process-proces
The above failure went away, but there is this new failure notification:
Execution failed for task ':app:packageAllDebugClassesForMultiDex'.
java.util.zip.ZipException: duplicate entry: org/webkit/android_jsc/R.class
Any insight would be appreciated! Thank you very much!
please cd android and run ./gradlew clean Please let me know if that fixes it. I'm interested in this issue, as this sometimes happens to me.
Thank you very much for your help, GantMan! The command ./gradlew clean indeed fixed the issue for me.
I have initialized a new Ignite app instance, followed your instruction and it worked.
Have a nice weekend!
@make2514 and @tnikolay - In version 1.7.1 which I will release soon, this will have been run for you. Ensuring no one has to worry to do it themselves :)
I used 1.7.1 (having never installed Ignite before) and bumped into the #371 issue. I needed to run ./gradlew clean manually to get react-native run-android to work.
that's so odd, since as of 1.7.1 it runs ./gradlew clean for you after everything is installed
I'm gonna try to recreate this problem locally.
just did a fresh install of 1.7.1 and it didn't have this problem :( Anyone got ideas?
(bump) With a fresh install of Android Studio, SDK packages and Ignite I ignited a new project and ran into this same issue right out of the box.
./gradlaw clean did fix it for me but I too had to run it manually.
I'm frustrated by the need for ./gradlew clean, I'll continue trying to track this down.
Same here.
Needed to run ./gradlaw clean.
Would be great if this was mentioned in the readme.
@illing2005 - please send a PR! I'll merge it.
Also, happy to merge if anyone figures out how to avoid this! It drives me crazy that we have to do that now :( I'll figure it out eventually.
Done
./gradlew clean don't help for me
me neither :(
@kogden Can you open a new issue?
Most helpful comment
please
cd androidand run./gradlew cleanPlease let me know if that fixes it. I'm interested in this issue, as this sometimes happens to me.