Reputation: 877
We've released a native Android app created using Android Studio, but have since change to using React Native. We created our first React Native release, however we're receiving an error message which states the new application is corrupt when attempting to install it while our original app is installed. If we uninstall the original app and then install our new React Native app, everything works great. We've used the same signing key, have made sure the package name and version name were identical, and incremented the version code by 1.
Has anyone been able to update from a native Android app to a React Native app without having to reinstall, and if so, are there additional parameters we need to consider?
Upvotes: 2
Views: 964
Reputation: 18803
I had exactly the same problem. I did these things
steps
applicationId
is the same signature
in new projectversionCode
more than previous app (in app/build.gradle
)Upvotes: 1
Reputation: 877
I was able to solve the problem! I ensured that the values of the compileSdkVersion
and targetSdkVersion
variables within build.gradle
matched what was used in our original native app. After that the update completed successfully.
Upvotes: 1