beefe / react-native-picker

A Native Picker with high performance.
1.75k stars 785 forks source link

Compiling failed because targetSdkVersion is too low #435

Open hailiangcock opened 2 years ago

hailiangcock commented 2 years ago

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 commented 2 years ago

compileSdkVersion 32 buildToolsVersion "32.0.0"

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

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

}