Issues with installing new app on the device
See original GitHub issueI am having trouble with installing every app on my device, still i am getting error
Unknown source file : UNEXPECTED TOP-LEVEL EXCEPTION:
Unknown source file : com.android.dex.DexException: Multiple dex files define La
ndroid/support/v7/appcompat/R$anim;
Unknown source file : at com.android.dx.merge.DexMerger.readSortableTypes(DexM
erger.java:596)
Unknown source file : at com.android.dx.merge.DexMerger.getSortedTypes(DexMerg
er.java:554)
Unknown source file : at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerg
er.java:535)
Unknown source file : at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.j
ava:171)
Unknown source file : at com.android.dx.merge.DexMerger.merge(DexMerger.java:1
89)
Unknown source file : at com.android.dx.command.dexer.Main.mergeLibraryDexBuff
ers(Main.java:502)
Unknown source file : at com.android.dx.command.dexer.Main.runMonoDex(Main.jav
a:334)
Unknown source file : at com.android.dx.command.dexer.Main.run(Main.java:277)
Unknown source file : at com.android.dx.command.dexer.Main.main(Main.java:245)
Unknown source file : at com.android.dx.command.Main.main(Main.java:106)
:app:dexDebug FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:dexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.E
xecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_101\bin\java.exe'
' finished with non-zero exit value 2
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
BUILD FAILED
Total time: 22.166 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html
(node:6876) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejec
tion id: 2): TypeError: Cannot read property 'message' of undefined
Any tips ?
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Fix problems downloading apps from the Play Store
Try the steps below if: Your downloads and app updates get stuck and won't finish. You can't download or install apps or games...
Read more >What to Do if Your Android Device Won't Download or ... - Alphr
This article will walk you through some troubleshooting steps and fixes so you can get right back to installing apps on your Android...
Read more >Top 8 Ways to Fix Apps Not Installing on Android - Guiding Tech
Top 8 Ways to Fix Apps Not Installing on Android · 1. Check Phone Storage · 2. Check Internet Connectivity · 3. Force...
Read more >Resolve app installation errors in Google Play Store
Open the Settings menu on your device. · Go to Apps or Application Manager. · Scroll to All apps and then scroll down...
Read more >How to Fix Android App Not Installed Error
Go to settings > Apps > Package Installer > Click Clear Cache and Data. After restarting your phone and then check if the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@pickfire Try chaning Java to Java 8. I run command
archlinux-java set java-8-openjdk
and this command solve problem which you have.I can’t solve it even if I do that.