huedaya.com/blog
just bunch of .md files
How to Upgrade Android SDK 33

If you get this kind of error while upload app to Play Store:

plaintext
App must target Android 13 (API level 33) or higher

Then you need to upgrade target API. First change SDK version on build.gradle.

plaintext
// ./android/build.gradle
buildscript {
    ext {
        buildToolsVersion = "31.0.0"
        minSdkVersion = 21
        compileSdkVersion = 33 // Change this
        targetSdkVersion = 33 // Change this
        ...
    }
    ...
}

Add notification manifest in AndroidManifest.xml.

plaintext
// ./android/app/src/main/AndroidManifest.xml
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>

In my case I need to upgrade react-native-webview to version 11.26.0, since I found this error:

plaintext
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-webview:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

If everything goes well, you can re-submit your app and the issue should be resolved.

That's it!

Last update: 2024-03-28 05:56:29 (1 month ago)