android - react-native :app:installDebug FAILED -
install apk debug device failed.
jianglinghuademacbook-pro:hello jianglinghua$ react-native run-android js server running. building , installing app on device (cd android && ./gradlew installdebug... warning [project: :app] current ndk support deprecated. alternative provided in future. :app:prebuild up-to-date ...... :app:assembledebug up-to-date :app:installdebug installing apk 'app-debug.apk' on 'mi note lte - 6.0.1' unable install /users/jianglinghua/desktop/hello/android/app/build/outputs/apk/app-debug.apk com.android.ddmlib.installexception: failed establish session @ com.android.ddmlib.device.installpackages(device.java:894) ........ @ org.gradle.wrapper.gradlewrappermain.main(gradlewrappermain.java:61) :app:installdebug failed failure: build failed exception. * went wrong: execution failed task ':app:installdebug'. > com.android.builder.testing.api.deviceexception: com.android.ddmlib.installexception: failed establish session * try: run --stacktrace option stack trace. run --info or --debug option more log output. build failed total time: 13.945 secs
could not install app on device, read error above details. make sure have android emulator running or device connected , have set android development environment: https://facebook.github.io/react-native/docs/android-setup.html
i @ devices
jianglinghuademacbook-pro:hello jianglinghua$ adb devices list of devices attached 98333978 device
since using mi phone has miui
try this
go developer options, scroll down find 'turn on miui optimization' & disable it. phone rebooted
check now
Comments
Post a Comment