Can't run a brad new project on android because of permission error on app-debug.apk
See original GitHub issueTrying to run on android device but keeps saying it has a permission error on the app-debug.pk
React Native version:
System:
OS: macOS 10.14.5
CPU: (4) x64 Intel(R) Core(TM) i5-4250U CPU @ 1.30GHz
Memory: 21.99 MB / 4.00 GB
Shell: 5.3 - /bin/zsh
Binaries:
Node: 8.11.3 - /usr/local/bin/node
npm: 6.10.1 - ~/.npm-packages/bin/npm
SDKs:
iOS SDK:
Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
Android SDK:
API Levels: 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28
Build Tools: 26.0.1, 26.0.2, 27.0.1, 27.0.2, 27.0.3, 28.0.3
System Images: android-16 | Google APIs Intel x86 Atom, android-19 | ARM EABI v7a, android-19 | Intel x86 Atom, android-20 | Android Wear ARM EABI v7a, android-20 | Android Wear Intel x86 Atom, android-21 | Android TV ARM EABI v7a, android-21 | Android TV Intel x86 Atom, android-21 | Android Wear ARM EABI v7a, android-21 | Android Wear Intel x86 Atom, android-21 | ARM EABI v7a, android-21 | Intel x86 Atom, android-21 | Intel x86 Atom_64, android-21 | Google APIs ARM EABI v7a, android-21 | Google APIs Intel x86 Atom, android-22 | Android TV ARM EABI v7a, android-22 | Android TV Intel x86 Atom, android-22 | Android Wear ARM EABI v7a, android-22 | Android Wear Intel x86 Atom, android-22 | ARM EABI v7a, android-22 | Intel x86 Atom, android-22 | Intel x86 Atom_64, android-22 | Google APIs ARM EABI v7a, android-22 | Google APIs Intel x86 Atom, android-22 | Google APIs Intel x86 Atom_64, android-23 | Google APIs Intel x86 Atom, android-24 | Intel x86 Atom, android-24 | Intel x86 Atom_64, android-24 | Google APIs Intel x86 Atom, android-25 | Android TV Intel x86 Atom, android-25 | Google APIs Intel x86 Atom_64
IDEs:
Android Studio: 3.4 AI-183.6156.11.34.5522156
Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
npmPackages:
react: 16.8.6 => 16.8.6
react-native: 0.60.3 => 0.60.3
npmGlobalPackages:
react-native-cli: 2.0.1
Steps To Reproduce
- create a brand new project
react-native init First
cd First
react-native run-android
The issue seems to be on the app-debug.apk file created with wrong permission, as can be seen in the output:
% react-native run-android !51
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 856 file(s) to forward-jetify. Using 4 workers...
info JS server already running.
info Installing the app...
> Task :app:installDebug
12:05:29 V/ddms: execute: running am get-config
12:05:31 V/ddms: execute 'am get-config' on '0bd53319' : EOF hit. Read: -1
12:05:31 V/ddms: execute: returning
Installing APK 'app-debug.apk' on 'SM-G900M - 6.0.1' for app:debug
12:05:31 D/app-debug.apk: Uploading app-debug.apk onto device '0bd53319'
12:05:31 D/Device: Uploading file onto device '0bd53319'
12:05:31 D/ddms: Reading file permision of /Users/francisco/code/react-native/First/android/app/build/outputs/apk/debug/app-debug.apk as: rw-r--r--
12:05:32 D/ddms: read: channel EOF
12:05:32 E/Device: Error during Sync: EOF
> Task :app:installDebug FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.4.1/userguide/command_line_interface.html#sec:command_line_warnings
27 actionable tasks: 3 executed, 24 up-to-date
Unable to install /Users/francisco/code/react-native/First/android/app/build/outputs/apk/debug/app-debug.apk
com.android.ddmlib.InstallException: EOF
at com.android.ddmlib.Device.installPackage(Device.java:913)
I must say I am new on React Native (I am Ionic programmer) and I am just following this tips here: https://facebook.github.io/react-native/docs/getting-started
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
react-native :app:installDebug FAILED - Stack Overflow
In my case, I have set up a new app but I was getting errors, tried many possible ways and answers from github...
Read more >Known issues with Android Studio and Android Gradle Plugin
To fix the issue for the current project, click Run > Edit Configurations and change the default JUnit configuration to only include the...
Read more >Common Google Play errors - Codemagic Docs
This error may have caused due to Account permission issues. Try setting admin access for Account permissions on google play console. After ...
Read more >Share app bundles and APKs internally - Play Console Help
Option 1: Create a new list of authorized uploaders. Open Play Console. Select an app. On the left menu, select Release > Internal...
Read more >Troubleshooting Android application tests in AWS Device Farm
Make sure that you can run this command on your Android application successfully. In the following example, the package's name is app-debug.apk.
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
info Running jetifier to migrate libraries to AndroidX. You can disable it using “–no-jetifier” flag. error Failed to run jetifier.
Got same error but now working fine thank you everyone.
😃
react-native run-android --no-jetifier