Puma
Puma

Reputation: 877

Is there a way to update a native Android app with a React Native app without having to reinstall?

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

Answers (2)

Mahdi Bashirpour
Mahdi Bashirpour

Reputation: 18803

I had exactly the same problem. I did these things

steps

  • Make sure the applicationId is the same
  • Insert previous app signature in new project
  • versionCode more than previous app (in app/build.gradle)

Upvotes: 1

Puma
Puma

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

Related Questions