shenghy / flutter_shop

一个Flutter的电商实战项目,包括首页、列表页、详细页、购物车页和会员中心,配有全套文字和视频教程。
1.22k stars 380 forks source link

项目运行不了报错 #4

Closed Sundayw closed 5 years ago

Sundayw commented 5 years ago
Sundayw commented 5 years ago

targetSdkVersion 28

binginsist commented 5 years ago

flutter_shop/android/app/src/build.gradle 下面两个位置的compileSdkVersion和targetSdkVersion改成28就好了

android { compileSdkVersion 28

lintOptions {
    disable 'InvalidPackage'
}

defaultConfig {
    // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
    applicationId "com.example.fluttershop"
    minSdkVersion 16
    targetSdkVersion 28
    versionCode flutterVersionCode.toInteger()
    versionName flutterVersionName
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

buildTypes {
    release {
        // TODO: Add your own signing config for the release build.
        // Signing with the debug keys for now, so `flutter run --release` works.
        signingConfig signingConfigs.debug
    }
}

}