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.
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.
Execution failed for task ':app:installDebug'.
java.util.concurrent.ExecutionException: com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException:
INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.schoolproject signatures do not match previously installed version; ignoring!
Solution of that type error
U will get that type error if you are run on your mobile using npx react-native run-android
please uninstall app-release.apk app if you already installed it on your device.
1.1 why required to uninstall- because the same name two application unable to install
one application is release mode and one is on debug mode same name app.
then after run command npx react-native run-android
You might just have a same application in your device already, uninstall it and then run the app again.
Such error comes when your signature of the old version and new version does not match.
Read more here:
https://developer.android.com/studio/publish/app-signing
If you want to have multiple apps based on different types, then add productFlavours in your application.
Read more on that here.
Getting the following error when I try to run my program on an iOS device
[INFO] : Invoking xcodebuild
[ERROR] : ** BUILD FAILED **
There is no other information displayed in the console about why the build has failed. I don't think my code is the issue because
It runs fine on the simulator, and
I tried running an example "Hello World" app and the same error occurred
I have recently updated my certificates and provision profiles, which is when this error started occurring.
I am running:
Node.js Version = 8.9.1
npm Version = 5.5.1
Appcelerator studio Version = 5.1.1.201809051655
Titanium SDK Version = 7.5.0.GA
Xcode Version = 10.1
Based on other forum posts that I have read, I have tried:
Cleaning the project
Using an older version of the Titanium SDK
Deleting old provision profiles from Xcode
Deleting old certificates from the keychain
Assigning correct provision profile and certificate from Run > Run Configurations
Removing modules used on the project
Using devices with different versions of iOS
Really at a loss of what else to try. Any recommendations would be greatly appreciated.
You can run appc run -p ios --log-level trace which will invoke the xcodebuild command with the highest possible log level. After that, the actual error will be shown. Most likely you are using a 3rd party module that is missing a framework link. If you got the log, you can paste it into a GitHub Gist and send it here, then we can find it for sure.
I am trying to deploy my react-native app to android. I follow the steps on this page
https://facebook.github.io/react-native/docs/signed-apk-android.html.
When I try to run it, it tells me
not such file or directory '.../assets/index.android.bundle'
or I get
Task 'installReleaseDebug' not found in root project 'awezaEduApp'
Using Windows 10 and react-native 0.39.2
OUTCOME
I ended up having to reformat my laptop for other reasons and when i repeated the signing process it worked. On account of my previous efforts, prior to reformatting, I would presume that Eldelshell's answer would have solved it.
Note: I think that running gradle tasks in Android Studio's terminal would also work.
You need to execute react-native run-android at least once. Don't worry if it fails because you don't have the emulator running.
or I get Task 'installReleaseDebug' not found in root project 'awezaEduApp'
You have to execute gradle inside the android folder.
Task 'installReleaseDebug' not found in root project 'awezaEduApp'
For RN 0.39.x, you have to run the following for release build:
react-native run-android --configuration=release
I often get this exception trying to start a debugging session on Nuclide.
React Native Server: [...]/packager/packager.sh: line 11: node: command not found
Where [...] will represent the correct path to the packager
The server will indicate it's running, but it isn't. Running react-native run-ios from the command line will start its own packager session (successfully).
I also sometimes don't get this error message, but in either case, when I run react-native run-ios, a new packager will be started and the Simulator will indicate "Runtime is not ready for debugging" etc. And the error message always shows up when I restart the packager in Nuclide.
On Chrome, debugging works (although with extremely shaky support for debugger stops stopping at the right line, which why I'm trying Nuclide).
I did get it to work a few times. But it seems unreliable.
Any suggestions?
Uninstalling and reinstalling Nuclide did the trick