I am trying to run react native app to my real android device. I checked my device before running
adb devices
List of devices attached
3357425441473098 device
I started with
npx react-native start
and in other console
npx react-native run-android
But got an error..
Task :app:installDebug FAILED
10:25:40 V/ddms: execute: running am get-config
10:25:40 V/ddms: execute 'am get-config' on '3357425441473098' : EOF hit. Read: -1
10:25:40 V/ddms: execute: returning
Installing APK 'app-debug.apk' on 'SM-G960U - 9' for app:debug
10:25:40 D/app-debug.apk: Uploading app-debug.apk onto device '3357425441473098'
10:25:40 D/Device: Uploading file onto device '3357425441473098'
10:25:40 D/ddms: Reading file permision of /home/user/react-native/awesomeProject/android/app/build/outputs/apk/debug/app-debug.apk as: rw-rw-r--
10:25:40 D/ddms: read: channel EOF
10:25:40 E/Device: Error during Sync: EOF
Unable to install /home/user/react-native/awesomeProject/android/app/build/outputs/apk/debug/app-debug.apk
com.android.ddmlib.InstallException: EOF
And right after that error. I lost my device connection.
adb devices
shows nothing..
and at the bottom of stacktrace I see this error also
Caused by: java.io.IOException: EOF
at com.android.ddmlib.AdbHelper.read(AdbHelper.java:862)
at com.android.ddmlib.SyncService.doPushFile(SyncService.java:712)
at com.android.ddmlib.SyncService.pushFile(SyncService.java:406)
at com.android.ddmlib.Device.syncPackageToDevice(Device.java:988)
at com.android.ddmlib.Device.installPackage(Device.java:902)
My device is us samsumg galaxy s9. It was working when I use Expo sdk. What is my problem?
react-native : 0.61.5