I am using windows 10
I tried react-native run-android and get below error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:installDebug'.
> com.android.builder.testing.api.DeviceException: No connected devices!
please try to describe your problem next time together with actions you took that might have caused the error. Your question title is grammatically incorrect. I don't even know if you are aware you must have a simulator running in order to run your app on device. So launch the simulator from android studio and then try to run the app. If this won't work you can try all the solutions mentioned here: https://github.com/facebook/react-native/issues/3091 . Cheers.
Related
Hello to the whole community.
I am having a problem building my apk using the eas build -p android command, by the way, I'm using Expo SDK 46.
When the Run Gradlew process is executed, it gives me an error that does not allow the process to terminate correctly.
Attached screenshot of the process.
Run Gradlew Error
The error always appears in the expo-web-browser module.
I hope someone can help me, I already have two days with this error.
I have tried to modify the build.gradle file in node_modules/expo-react-native-adapter/android/build.gradle but it still doesn't work.
I am trying to build my react-native application on android platform (debug build), but getting error for RNCameraKit package used in multiple component to use camera.
Error:
What went wrong:
Execution failed for task ':rncamerakit:compileDebugLibraryResources'.
it.file.parentFile must not be null
can't figure out the issue. let me know if anyone faced this issue? and If yes than how can I resolve it.
Thank you in advance!
I've spend lots of time solving this problem but it didn't work
When I tried to run android emulator in react native by typing react-native run-android
but it didn't work beacause of this error
detail code for error that happened
so I opened react-native doctor to see the problem. cause I already have Android Studio, and the emulator was already running before I typed react-native run-android.
Finally I found my error saying this.
problem on react-native doctor
Is there anyone who can teach me to solve this problem?
I have no idea why the computer can't recognize Android Studio.
so sad..
I'm trying to run the following command to test the release version of my RN app locally:
react-native run-android --variant=release
Unfortunately, this fails to load the release version of the app into the emulator b/c it's failing with the following exception:
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':app:installRelease'.
com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException:
INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.socialmerge signatures
do not match previously installed version; ignoring!
Based on some googling I found the following thread:
Package signatures do not match the previously installed version
Some recommend uninstalling the previously installed version like this:
adb uninstall "com.MyDomain.MyApp"
I tried that as well as this:
adb uninstall com.MyDomain.MyApp
But both of these adb uninstall attempts return [DELETE_FAILED_INTERNAL_ERROR]. The following thread discusses the [DELETE_FAILED_INTERNAL_ERROR] error and some suggest disabling "Instant Run" in Android Studio. I have AS 3.5.2 and the closest match I can find to that are the following options which are unchecked by default:
"Automatically perform "Run" when Apply Changes fails
"Automatically perform "Run" when Apply Code Changes fails"
I'm assuming that these ^^^ options replace the previous "Instant Run" option but both of these options are unselected by default so it appears that disabling "Instant Run" is no longer relevant to debugging this issue. Any recommendations on next steps for debugging this issue?
I figured out this issue:
adb uninstall is case sensitive
uninstall app in your device first then try
react-native run-android --variant=release
I run into the same issue and I got it solved by wiping the data of the simulator.
I'm trying to generate signed apk version of my react native app from android studio
always the same error appears at the end
Caused by: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:bundleReleaseJsAndAssets'
I've been looking for a solution for two days
Is there anyone who can save my life
When I get errors like this they are mostly solved by doing a Build -> Clean Project and then trying again.