Android resource linking failed, order mixed up












0














I am trying to build an app that worked before.



This is the error message:



Android resource linking failed
Output: E:appbuildintermediatesincrementalmergeDebugResourcesmerged.dirvalues-v28values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
E:appbuildintermediatesincrementalmergeDebugResourcesmerged.dirvalues-v28values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
E:appbuildintermediatesincrementalmergeDebugResourcesmerged.dirvaluesvalues.xml:1174: error: resource android:attr/fontVariationSettings not found.
E:appbuildintermediatesincrementalmergeDebugResourcesmerged.dirvaluesvalues.xml:1175: error: resource android:attr/ttcIndex not found.
error: failed linking references.

Command: C:.gradlecachestransforms-1files-1.1aapt2-3.2.1-4818971-windows.jara50b902eb6d2bdbd9e1a638d3c3bca74aapt2-3.2.1-4818971-windowsaapt2.exe link -I
E:Androidsdkplatformsandroid-26android.jar
--manifest
E:appbuildintermediatesmerged_manifestsdebugprocessDebugManifestmergedAndroidManifest.xml
-o
E:appbuildintermediatesprocessed_resdebugprocessDebugResourcesoutresources-debug.ap_
-R
@E:appbuildintermediatesincrementalprocessDebugResourcesresources-list-for-resources-debug.ap_.txt
--auto-add-overlay
--java
E:appbuildgeneratednot_namespaced_r_class_sourcesdebugprocessDebugResourcesr
--custom-package
de.test.test
-0
apk
--output-text-symbols
E:appbuildintermediatessymbolsdebugR.txt
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0


These are the build gradles



// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:+'
}
}

allprojects {
repositories {
jcenter()
google()
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}


and



apply plugin: 'com.android.application'

android {
compileSdkVersion 26
buildToolsVersion '28.0.3'
defaultConfig {
applicationId "de.test.test"
minSdkVersion 23
targetSdkVersion 26
versionCode 9
versionName "Ginger"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:+'
implementation 'com.android.support:design:+'
implementation 'com.google.android.gms:play-services-ads:+'
implementation 'com.google.firebase:firebase-core:+'
implementation 'com.android.support:multidex:+'
debugImplementation 'com.squareup.leakcanary:leakcanary-android:+'
releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:+'
// Optional, if you use support library fragments:
debugImplementation 'com.squareup.leakcanary:leakcanary-support-fragment:+'
}


apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.android.application'


Something with the versions or order is mixed up. Do you know which one?



................ ................ ................ ................ ................ ................ ................ ................ ................ ................ ................ ................ ................ ................ ................










share|improve this question
























  • Docs say dialogCornerRadius was added in api level 28.
    – Jim Rhodes
    Nov 12 '18 at 21:19










  • The major version of the support libraries should match the compileSdkVersion. Specify the versions of the libraries explicitly instead of using '+'
    – aschattney
    Nov 12 '18 at 21:38


















0














I am trying to build an app that worked before.



This is the error message:



Android resource linking failed
Output: E:appbuildintermediatesincrementalmergeDebugResourcesmerged.dirvalues-v28values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
E:appbuildintermediatesincrementalmergeDebugResourcesmerged.dirvalues-v28values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
E:appbuildintermediatesincrementalmergeDebugResourcesmerged.dirvaluesvalues.xml:1174: error: resource android:attr/fontVariationSettings not found.
E:appbuildintermediatesincrementalmergeDebugResourcesmerged.dirvaluesvalues.xml:1175: error: resource android:attr/ttcIndex not found.
error: failed linking references.

Command: C:.gradlecachestransforms-1files-1.1aapt2-3.2.1-4818971-windows.jara50b902eb6d2bdbd9e1a638d3c3bca74aapt2-3.2.1-4818971-windowsaapt2.exe link -I
E:Androidsdkplatformsandroid-26android.jar
--manifest
E:appbuildintermediatesmerged_manifestsdebugprocessDebugManifestmergedAndroidManifest.xml
-o
E:appbuildintermediatesprocessed_resdebugprocessDebugResourcesoutresources-debug.ap_
-R
@E:appbuildintermediatesincrementalprocessDebugResourcesresources-list-for-resources-debug.ap_.txt
--auto-add-overlay
--java
E:appbuildgeneratednot_namespaced_r_class_sourcesdebugprocessDebugResourcesr
--custom-package
de.test.test
-0
apk
--output-text-symbols
E:appbuildintermediatessymbolsdebugR.txt
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0


These are the build gradles



// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:+'
}
}

allprojects {
repositories {
jcenter()
google()
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}


and



apply plugin: 'com.android.application'

android {
compileSdkVersion 26
buildToolsVersion '28.0.3'
defaultConfig {
applicationId "de.test.test"
minSdkVersion 23
targetSdkVersion 26
versionCode 9
versionName "Ginger"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:+'
implementation 'com.android.support:design:+'
implementation 'com.google.android.gms:play-services-ads:+'
implementation 'com.google.firebase:firebase-core:+'
implementation 'com.android.support:multidex:+'
debugImplementation 'com.squareup.leakcanary:leakcanary-android:+'
releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:+'
// Optional, if you use support library fragments:
debugImplementation 'com.squareup.leakcanary:leakcanary-support-fragment:+'
}


apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.android.application'


Something with the versions or order is mixed up. Do you know which one?



................ ................ ................ ................ ................ ................ ................ ................ ................ ................ ................ ................ ................ ................ ................










share|improve this question
























  • Docs say dialogCornerRadius was added in api level 28.
    – Jim Rhodes
    Nov 12 '18 at 21:19










  • The major version of the support libraries should match the compileSdkVersion. Specify the versions of the libraries explicitly instead of using '+'
    – aschattney
    Nov 12 '18 at 21:38
















0












0








0







I am trying to build an app that worked before.



This is the error message:



Android resource linking failed
Output: E:appbuildintermediatesincrementalmergeDebugResourcesmerged.dirvalues-v28values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
E:appbuildintermediatesincrementalmergeDebugResourcesmerged.dirvalues-v28values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
E:appbuildintermediatesincrementalmergeDebugResourcesmerged.dirvaluesvalues.xml:1174: error: resource android:attr/fontVariationSettings not found.
E:appbuildintermediatesincrementalmergeDebugResourcesmerged.dirvaluesvalues.xml:1175: error: resource android:attr/ttcIndex not found.
error: failed linking references.

Command: C:.gradlecachestransforms-1files-1.1aapt2-3.2.1-4818971-windows.jara50b902eb6d2bdbd9e1a638d3c3bca74aapt2-3.2.1-4818971-windowsaapt2.exe link -I
E:Androidsdkplatformsandroid-26android.jar
--manifest
E:appbuildintermediatesmerged_manifestsdebugprocessDebugManifestmergedAndroidManifest.xml
-o
E:appbuildintermediatesprocessed_resdebugprocessDebugResourcesoutresources-debug.ap_
-R
@E:appbuildintermediatesincrementalprocessDebugResourcesresources-list-for-resources-debug.ap_.txt
--auto-add-overlay
--java
E:appbuildgeneratednot_namespaced_r_class_sourcesdebugprocessDebugResourcesr
--custom-package
de.test.test
-0
apk
--output-text-symbols
E:appbuildintermediatessymbolsdebugR.txt
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0


These are the build gradles



// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:+'
}
}

allprojects {
repositories {
jcenter()
google()
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}


and



apply plugin: 'com.android.application'

android {
compileSdkVersion 26
buildToolsVersion '28.0.3'
defaultConfig {
applicationId "de.test.test"
minSdkVersion 23
targetSdkVersion 26
versionCode 9
versionName "Ginger"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:+'
implementation 'com.android.support:design:+'
implementation 'com.google.android.gms:play-services-ads:+'
implementation 'com.google.firebase:firebase-core:+'
implementation 'com.android.support:multidex:+'
debugImplementation 'com.squareup.leakcanary:leakcanary-android:+'
releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:+'
// Optional, if you use support library fragments:
debugImplementation 'com.squareup.leakcanary:leakcanary-support-fragment:+'
}


apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.android.application'


Something with the versions or order is mixed up. Do you know which one?



................ ................ ................ ................ ................ ................ ................ ................ ................ ................ ................ ................ ................ ................ ................










share|improve this question















I am trying to build an app that worked before.



This is the error message:



Android resource linking failed
Output: E:appbuildintermediatesincrementalmergeDebugResourcesmerged.dirvalues-v28values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
E:appbuildintermediatesincrementalmergeDebugResourcesmerged.dirvalues-v28values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
E:appbuildintermediatesincrementalmergeDebugResourcesmerged.dirvaluesvalues.xml:1174: error: resource android:attr/fontVariationSettings not found.
E:appbuildintermediatesincrementalmergeDebugResourcesmerged.dirvaluesvalues.xml:1175: error: resource android:attr/ttcIndex not found.
error: failed linking references.

Command: C:.gradlecachestransforms-1files-1.1aapt2-3.2.1-4818971-windows.jara50b902eb6d2bdbd9e1a638d3c3bca74aapt2-3.2.1-4818971-windowsaapt2.exe link -I
E:Androidsdkplatformsandroid-26android.jar
--manifest
E:appbuildintermediatesmerged_manifestsdebugprocessDebugManifestmergedAndroidManifest.xml
-o
E:appbuildintermediatesprocessed_resdebugprocessDebugResourcesoutresources-debug.ap_
-R
@E:appbuildintermediatesincrementalprocessDebugResourcesresources-list-for-resources-debug.ap_.txt
--auto-add-overlay
--java
E:appbuildgeneratednot_namespaced_r_class_sourcesdebugprocessDebugResourcesr
--custom-package
de.test.test
-0
apk
--output-text-symbols
E:appbuildintermediatessymbolsdebugR.txt
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0


These are the build gradles



// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:+'
}
}

allprojects {
repositories {
jcenter()
google()
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}


and



apply plugin: 'com.android.application'

android {
compileSdkVersion 26
buildToolsVersion '28.0.3'
defaultConfig {
applicationId "de.test.test"
minSdkVersion 23
targetSdkVersion 26
versionCode 9
versionName "Ginger"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:+'
implementation 'com.android.support:design:+'
implementation 'com.google.android.gms:play-services-ads:+'
implementation 'com.google.firebase:firebase-core:+'
implementation 'com.android.support:multidex:+'
debugImplementation 'com.squareup.leakcanary:leakcanary-android:+'
releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:+'
// Optional, if you use support library fragments:
debugImplementation 'com.squareup.leakcanary:leakcanary-support-fragment:+'
}


apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.android.application'


Something with the versions or order is mixed up. Do you know which one?



................ ................ ................ ................ ................ ................ ................ ................ ................ ................ ................ ................ ................ ................ ................







android






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 12 '18 at 21:10







Uli Loose

















asked Nov 12 '18 at 21:08









Uli LooseUli Loose

16




16












  • Docs say dialogCornerRadius was added in api level 28.
    – Jim Rhodes
    Nov 12 '18 at 21:19










  • The major version of the support libraries should match the compileSdkVersion. Specify the versions of the libraries explicitly instead of using '+'
    – aschattney
    Nov 12 '18 at 21:38




















  • Docs say dialogCornerRadius was added in api level 28.
    – Jim Rhodes
    Nov 12 '18 at 21:19










  • The major version of the support libraries should match the compileSdkVersion. Specify the versions of the libraries explicitly instead of using '+'
    – aschattney
    Nov 12 '18 at 21:38


















Docs say dialogCornerRadius was added in api level 28.
– Jim Rhodes
Nov 12 '18 at 21:19




Docs say dialogCornerRadius was added in api level 28.
– Jim Rhodes
Nov 12 '18 at 21:19












The major version of the support libraries should match the compileSdkVersion. Specify the versions of the libraries explicitly instead of using '+'
– aschattney
Nov 12 '18 at 21:38






The major version of the support libraries should match the compileSdkVersion. Specify the versions of the libraries explicitly instead of using '+'
– aschattney
Nov 12 '18 at 21:38














1 Answer
1






active

oldest

votes


















1














try to change the compileSdkVersion to: compileSdkVersion 28



    compileSdkVersion 28
buildToolsVersion '28.0.3' //no need for defining buildToolsVersion, comment or delete this line





share|improve this answer





















    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53270126%2fandroid-resource-linking-failed-order-mixed-up%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    try to change the compileSdkVersion to: compileSdkVersion 28



        compileSdkVersion 28
    buildToolsVersion '28.0.3' //no need for defining buildToolsVersion, comment or delete this line





    share|improve this answer


























      1














      try to change the compileSdkVersion to: compileSdkVersion 28



          compileSdkVersion 28
      buildToolsVersion '28.0.3' //no need for defining buildToolsVersion, comment or delete this line





      share|improve this answer
























        1












        1








        1






        try to change the compileSdkVersion to: compileSdkVersion 28



            compileSdkVersion 28
        buildToolsVersion '28.0.3' //no need for defining buildToolsVersion, comment or delete this line





        share|improve this answer












        try to change the compileSdkVersion to: compileSdkVersion 28



            compileSdkVersion 28
        buildToolsVersion '28.0.3' //no need for defining buildToolsVersion, comment or delete this line






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 12 '18 at 21:37









        navylovernavylover

        3,36521118




        3,36521118






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53270126%2fandroid-resource-linking-failed-order-mixed-up%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Florida Star v. B. J. F.

            Error while running script in elastic search , gateway timeout

            Adding quotations to stringified JSON object values