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

项目运行不了报错 #4

Closed
Sundayw opened this issue Jun 26, 2019 · 2 comments
Closed

项目运行不了报错 #4

Sundayw opened this issue Jun 26, 2019 · 2 comments

Comments

@Sundayw
Copy link

Sundayw commented Jun 26, 2019

  • What went wrong:
    Execution failed for task ':app:processDebugResources'.

Android resource linking failed
Output: D:\Android\asFlutterwork\flutter_shop-master\build\app\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:86: error: resource android:attr/fontVariationSettings not found.
D:\Android\asFlutterwork\flutter_shop-master\build\app\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:87: error: resource android:attr/ttcIndex not found.
error: failed linking references.

@Sundayw Sundayw changed the title * What went wrong: 项目运行不了报错 Jun 26, 2019
@Sundayw Sundayw closed this as completed Jun 26, 2019
@Sundayw
Copy link
Author

Sundayw commented Jun 26, 2019

targetSdkVersion 28

@binginsist
Copy link

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
    }
}

}

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