Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling failed because targetSdkVersion is too low #435

Open
hailiangcock opened this issue May 28, 2022 · 1 comment
Open

Compiling failed because targetSdkVersion is too low #435

hailiangcock opened this issue May 28, 2022 · 1 comment

Comments

@hailiangcock
Copy link

The following is recommended :

apply plugin: 'com.android.library'

android {
    compileSdkVersion 31
    defaultConfig {
        minSdkVersion 16
        targetSdkVersion 31
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.facebook.react:react-native:+'
}

@caferyukseloglu
Copy link

compileSdkVersion 32
buildToolsVersion "32.0.0"

defaultConfig {
    minSdkVersion 16
    targetSdkVersion 32
    versionCode 1
    versionName "1.0"

    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants