ฉันกำหนดค่าสภาพแวดล้อม android-P SDK สำเร็จแล้ว เมื่อฉันพยายามใช้ไลบรารีสนับสนุนการออกแบบของ Android ฉันพบข้อผิดพลาดในการสร้างโครงการ การกำหนดค่าโครงการคือ:
IDE: 3.2 Canary 17 Target API: 28 Compile API: 28
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "com.app.navigationpoc"
        minSdkVersion 21
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}
dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation 'androidx.appcompat:appcompat:1.0.0-alpha3'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.1'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test:runner:1.1.0-alpha3'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha3'
    implementation 'com.android.support:design:28.0.0-alpha3'
    implementation 'com.android.support:cardview-v7:28.0.0-alpha3'
}
และสร้างข้อผิดพลาดที่ล้มเหลวคือ:
การควบรวมกิจการ Manifest ล้มเหลว: Attribute application @ appComponentFactory value = (androidx.core.app.CoreComponentFactory) จาก [androidx.core: core: 1.0.0-alpha3] AndroidManifest.xml: 22: 18-86 มีอยู่ที่ [com.android .support: support-compat: 28.0.0-alpha3] AndroidManifest.xml: 22: 18-91 value = (android.support.v4.app.CoreComponentFactory) คำแนะนำ: เพิ่ม "tools: replace =" android: appComponentFactory "" ไปยังองค์ประกอบที่ AndroidManifest.xml: 6: 5-40: 19 เพื่อแทนที่