React Native: Fix adb - device is offline error and Execution failed for task ':app:installDebug' and other
Easy to fix just follow the following steps:
Open CMD(command prompt) and below commands in order
- Kill the running ADB server using "adb kill-server"
- Start ADB server using "adb start-server"
- check running devices status using "adb devices"
- if your device is offline then run following this command "adb reconnect device"
'ADB' is not recognized as an internal or external command, operable program or batch file
How to Fix It?
Clean up you android build:
Try this one:
cd android && ./gradlew clean
What went wrong: Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 24 declared in library [:react-native-ffmpeg] D:\Surya\learn\AwesomeProject\node_modules\react-native-ffmpeg\android\build\intermediates\library_manifest\debug\AndroidManifest.xml as the library might be using APIs not available in 16
Suggestion: use a compatible library with a minSdk of at most 16,
or increase this project's minSdk version to at least 24,
How to Fix It?
What went wrong: Execution failed for task ':app:installDebug'.
> com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: Unknown failure: cmd: Can't find service: package
How to Fix It?
Just ran into the same error. In my case, the emulator was frozen. I had to go to AVD Manager in Android Studio and run "Cold Boot Now" on the specific emulator to get it back up, then this error went away.
How to Fix It?
Window 10: clean android project
run following commond
: cd android && gradlew clean
Install React Native cli global: run the follwoing command
npm install -g react-native-cli
Comments
Post a Comment