Hello Rudderstack team, I am updating my react nat...
# support
f
Hello Rudderstack team, I am updating my react native application from 0.68.x to 0.70.x. I used to have the version
"@rudderstack/rudder-sdk-react-native": "1.1.0"
and I migrated to
"@rudderstack/rudder-sdk-react-native": "1.7.0"
for compatibility. Everything was working fine until I did a production build. On Android, I am encountering the following error:
Copy code
android.database.sqlite.SQLiteException: Can't downgrade database from version 2 to 1
    at android.database.sqlite.SQLiteOpenHelper.onDowngrade(SQLiteOpenHelper.java:540)
    at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:414)
    at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:316)
    at com.rudderstack.android.sdk.core.DBPersistentManager$1.run(DBPersistentManager.java:233)
Can you please help me?
c
Hey @famous-psychiatrist-10014, Could you please provide information: 1. On the version of
com.rudderstack.android.sdk:core
that is resolved when using
"@rudderstack/rudder-sdk-react-native": "1.1.0"
? Additionally, after updating to
"@rudderstack/rudder-sdk-react-native": "1.7.0"
, which version does
com.rudderstack.android.sdk:core
resolve to? 2. If you are utilizing any other Rudder React-Native integration, such as rudder-integration-amplitude-react-native, could you please provide its version as well? Have you updated this as well? In the meantime, could you please verify that the Rudder Android SDK
com.rudderstack.android.sdk:core
resolves to the latest version
1.13.1
? I recommend upgrading to the latest version of all the Rudder React-Native packages you are currently using, refer here: https://github.com/rudderlabs/rudder-sdk-react-native/releases. CC: <!subteam^S04QT1G74Q3|@sdk-team>
f
Hi @calm-yak-10773, Thank you for your response. In the end, I decided to upgrade "@rudderstack/rudder-sdk-react-native" to version 1.7.1 and since then I haven't experienced any more crashes. However, I've noticed that some of my users report an initial crash after updating to the new version of my app, but after that, everything seems to work properly without further issues.
❤️ 1
c
I’m glad that issue is resolved. This issue is expected to occur when you install a specific version of the Rudder-Android SDK and then switch back to a version lower than 1.7.0. However, if you are using the latest version of our Android SDK, this issue should not occur.