When use Login Activity Template AS provided,I build failed with error:resource style/CardView not found
Android Studio show the error messages as follow:
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:processDebugResources'.
Android resource linking failed
Output: error: resource style/CardView (aka com.example.kerne.myapplication:style/CardView) not found.
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatesincrementalmergeDebugResourcesmerged.dirvaluesvalues.xml:4280: error: style attribute 'attr/cardElevation (aka com.example.kerne.myapplication:attr/cardElevation)' not found.
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatesincrementalmergeDebugResourcesmerged.dirvaluesvalues.xml:4281: error: style attribute 'attr/cardBackgroundColor (aka com.example.kerne.myapplication:attr/cardBackgroundColor)' not found.
error: failed linking references.
Command: C:UsersKerne.gradlecachestransforms-1files-1.1aapt2-3.2.1-4818971-windows.jar516d0ba81fb194b738ad96d8201bfccfaapt2-3.2.1-4818971-windowsaapt2.exe link -I
C:UsersKerneAppDataLocalAndroidSdkplatformsandroid-28android.jar
--manifest
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatesmerged_manifestsdebugprocessDebugManifestmergedAndroidManifest.xml
-o
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatesprocessed_resdebugprocessDebugResourcesoutresources-debug.ap_
-R
@E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatesincrementalprocessDebugResourcesresources-list-for-resources-debug.ap_.txt
--auto-add-overlay
--java
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildgeneratednot_namespaced_r_class_sourcesdebugprocessDebugResourcesr
--custom-package
com.example.kerne.myapplication
-0
apk
--output-text-symbols
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatessymbolsdebugR.txt
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
Output: error: resource style/CardView (aka com.example.kerne.myapplication:style/CardView) not found.
C:UsersKerne.gradlecachestransforms-1files-1.1design-28.0.0.aarab02d6ef8e59cb2bf2d52ed920bf2ff8resvaluesvalues.xml:1089:5-1091:11: AAPT: error: style attribute 'attr/cardElevation (aka com.example.kerne.myapplication:attr/cardElevation)' not found.
C:UsersKerne.gradlecachestransforms-1files-1.1design-28.0.0.aarab02d6ef8e59cb2bf2d52ed920bf2ff8resvaluesvalues.xml:1089:5-1091:11: AAPT: error: style attribute 'attr/cardBackgroundColor (aka com.example.kerne.myapplication:attr/cardBackgroundColor)' not found.
error: failed linking references.
Command: C:UsersKerne.gradlecachestransforms-1files-1.1aapt2-3.2.1-4818971-windows.jar516d0ba81fb194b738ad96d8201bfccfaapt2-3.2.1-4818971-windowsaapt2.exe link -I
C:UsersKerneAppDataLocalAndroidSdkplatformsandroid-28android.jar
--manifest
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatesmerged_manifestsdebugprocessDebugManifestmergedAndroidManifest.xml
-o
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatesprocessed_resdebugprocessDebugResourcesoutresources-debug.ap_
-R
@E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatesincrementalprocessDebugResourcesresources-list-for-resources-debug.ap_.txt
--auto-add-overlay
--java
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildgeneratednot_namespaced_r_class_sourcesdebugprocessDebugResourcesr
--custom-package
com.example.kerne.myapplication
-0
apk
--output-text-symbols
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatessymbolsdebugR.txt
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0


add a comment |
Android Studio show the error messages as follow:
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:processDebugResources'.
Android resource linking failed
Output: error: resource style/CardView (aka com.example.kerne.myapplication:style/CardView) not found.
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatesincrementalmergeDebugResourcesmerged.dirvaluesvalues.xml:4280: error: style attribute 'attr/cardElevation (aka com.example.kerne.myapplication:attr/cardElevation)' not found.
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatesincrementalmergeDebugResourcesmerged.dirvaluesvalues.xml:4281: error: style attribute 'attr/cardBackgroundColor (aka com.example.kerne.myapplication:attr/cardBackgroundColor)' not found.
error: failed linking references.
Command: C:UsersKerne.gradlecachestransforms-1files-1.1aapt2-3.2.1-4818971-windows.jar516d0ba81fb194b738ad96d8201bfccfaapt2-3.2.1-4818971-windowsaapt2.exe link -I
C:UsersKerneAppDataLocalAndroidSdkplatformsandroid-28android.jar
--manifest
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatesmerged_manifestsdebugprocessDebugManifestmergedAndroidManifest.xml
-o
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatesprocessed_resdebugprocessDebugResourcesoutresources-debug.ap_
-R
@E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatesincrementalprocessDebugResourcesresources-list-for-resources-debug.ap_.txt
--auto-add-overlay
--java
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildgeneratednot_namespaced_r_class_sourcesdebugprocessDebugResourcesr
--custom-package
com.example.kerne.myapplication
-0
apk
--output-text-symbols
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatessymbolsdebugR.txt
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
Output: error: resource style/CardView (aka com.example.kerne.myapplication:style/CardView) not found.
C:UsersKerne.gradlecachestransforms-1files-1.1design-28.0.0.aarab02d6ef8e59cb2bf2d52ed920bf2ff8resvaluesvalues.xml:1089:5-1091:11: AAPT: error: style attribute 'attr/cardElevation (aka com.example.kerne.myapplication:attr/cardElevation)' not found.
C:UsersKerne.gradlecachestransforms-1files-1.1design-28.0.0.aarab02d6ef8e59cb2bf2d52ed920bf2ff8resvaluesvalues.xml:1089:5-1091:11: AAPT: error: style attribute 'attr/cardBackgroundColor (aka com.example.kerne.myapplication:attr/cardBackgroundColor)' not found.
error: failed linking references.
Command: C:UsersKerne.gradlecachestransforms-1files-1.1aapt2-3.2.1-4818971-windows.jar516d0ba81fb194b738ad96d8201bfccfaapt2-3.2.1-4818971-windowsaapt2.exe link -I
C:UsersKerneAppDataLocalAndroidSdkplatformsandroid-28android.jar
--manifest
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatesmerged_manifestsdebugprocessDebugManifestmergedAndroidManifest.xml
-o
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatesprocessed_resdebugprocessDebugResourcesoutresources-debug.ap_
-R
@E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatesincrementalprocessDebugResourcesresources-list-for-resources-debug.ap_.txt
--auto-add-overlay
--java
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildgeneratednot_namespaced_r_class_sourcesdebugprocessDebugResourcesr
--custom-package
com.example.kerne.myapplication
-0
apk
--output-text-symbols
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatessymbolsdebugR.txt
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0


Is your compileSdk set to 28?
– Izabela Orlowska
Nov 20 '18 at 13:55
It is very strange,today when i build a login template,it success. I dont know what happened,but still thank you very much.
– 刘孟德
Nov 28 '18 at 14:16
add a comment |
Android Studio show the error messages as follow:
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:processDebugResources'.
Android resource linking failed
Output: error: resource style/CardView (aka com.example.kerne.myapplication:style/CardView) not found.
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatesincrementalmergeDebugResourcesmerged.dirvaluesvalues.xml:4280: error: style attribute 'attr/cardElevation (aka com.example.kerne.myapplication:attr/cardElevation)' not found.
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatesincrementalmergeDebugResourcesmerged.dirvaluesvalues.xml:4281: error: style attribute 'attr/cardBackgroundColor (aka com.example.kerne.myapplication:attr/cardBackgroundColor)' not found.
error: failed linking references.
Command: C:UsersKerne.gradlecachestransforms-1files-1.1aapt2-3.2.1-4818971-windows.jar516d0ba81fb194b738ad96d8201bfccfaapt2-3.2.1-4818971-windowsaapt2.exe link -I
C:UsersKerneAppDataLocalAndroidSdkplatformsandroid-28android.jar
--manifest
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatesmerged_manifestsdebugprocessDebugManifestmergedAndroidManifest.xml
-o
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatesprocessed_resdebugprocessDebugResourcesoutresources-debug.ap_
-R
@E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatesincrementalprocessDebugResourcesresources-list-for-resources-debug.ap_.txt
--auto-add-overlay
--java
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildgeneratednot_namespaced_r_class_sourcesdebugprocessDebugResourcesr
--custom-package
com.example.kerne.myapplication
-0
apk
--output-text-symbols
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatessymbolsdebugR.txt
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
Output: error: resource style/CardView (aka com.example.kerne.myapplication:style/CardView) not found.
C:UsersKerne.gradlecachestransforms-1files-1.1design-28.0.0.aarab02d6ef8e59cb2bf2d52ed920bf2ff8resvaluesvalues.xml:1089:5-1091:11: AAPT: error: style attribute 'attr/cardElevation (aka com.example.kerne.myapplication:attr/cardElevation)' not found.
C:UsersKerne.gradlecachestransforms-1files-1.1design-28.0.0.aarab02d6ef8e59cb2bf2d52ed920bf2ff8resvaluesvalues.xml:1089:5-1091:11: AAPT: error: style attribute 'attr/cardBackgroundColor (aka com.example.kerne.myapplication:attr/cardBackgroundColor)' not found.
error: failed linking references.
Command: C:UsersKerne.gradlecachestransforms-1files-1.1aapt2-3.2.1-4818971-windows.jar516d0ba81fb194b738ad96d8201bfccfaapt2-3.2.1-4818971-windowsaapt2.exe link -I
C:UsersKerneAppDataLocalAndroidSdkplatformsandroid-28android.jar
--manifest
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatesmerged_manifestsdebugprocessDebugManifestmergedAndroidManifest.xml
-o
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatesprocessed_resdebugprocessDebugResourcesoutresources-debug.ap_
-R
@E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatesincrementalprocessDebugResourcesresources-list-for-resources-debug.ap_.txt
--auto-add-overlay
--java
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildgeneratednot_namespaced_r_class_sourcesdebugprocessDebugResourcesr
--custom-package
com.example.kerne.myapplication
-0
apk
--output-text-symbols
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatessymbolsdebugR.txt
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0


Android Studio show the error messages as follow:
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:processDebugResources'.
Android resource linking failed
Output: error: resource style/CardView (aka com.example.kerne.myapplication:style/CardView) not found.
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatesincrementalmergeDebugResourcesmerged.dirvaluesvalues.xml:4280: error: style attribute 'attr/cardElevation (aka com.example.kerne.myapplication:attr/cardElevation)' not found.
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatesincrementalmergeDebugResourcesmerged.dirvaluesvalues.xml:4281: error: style attribute 'attr/cardBackgroundColor (aka com.example.kerne.myapplication:attr/cardBackgroundColor)' not found.
error: failed linking references.
Command: C:UsersKerne.gradlecachestransforms-1files-1.1aapt2-3.2.1-4818971-windows.jar516d0ba81fb194b738ad96d8201bfccfaapt2-3.2.1-4818971-windowsaapt2.exe link -I
C:UsersKerneAppDataLocalAndroidSdkplatformsandroid-28android.jar
--manifest
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatesmerged_manifestsdebugprocessDebugManifestmergedAndroidManifest.xml
-o
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatesprocessed_resdebugprocessDebugResourcesoutresources-debug.ap_
-R
@E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatesincrementalprocessDebugResourcesresources-list-for-resources-debug.ap_.txt
--auto-add-overlay
--java
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildgeneratednot_namespaced_r_class_sourcesdebugprocessDebugResourcesr
--custom-package
com.example.kerne.myapplication
-0
apk
--output-text-symbols
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatessymbolsdebugR.txt
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
Output: error: resource style/CardView (aka com.example.kerne.myapplication:style/CardView) not found.
C:UsersKerne.gradlecachestransforms-1files-1.1design-28.0.0.aarab02d6ef8e59cb2bf2d52ed920bf2ff8resvaluesvalues.xml:1089:5-1091:11: AAPT: error: style attribute 'attr/cardElevation (aka com.example.kerne.myapplication:attr/cardElevation)' not found.
C:UsersKerne.gradlecachestransforms-1files-1.1design-28.0.0.aarab02d6ef8e59cb2bf2d52ed920bf2ff8resvaluesvalues.xml:1089:5-1091:11: AAPT: error: style attribute 'attr/cardBackgroundColor (aka com.example.kerne.myapplication:attr/cardBackgroundColor)' not found.
error: failed linking references.
Command: C:UsersKerne.gradlecachestransforms-1files-1.1aapt2-3.2.1-4818971-windows.jar516d0ba81fb194b738ad96d8201bfccfaapt2-3.2.1-4818971-windowsaapt2.exe link -I
C:UsersKerneAppDataLocalAndroidSdkplatformsandroid-28android.jar
--manifest
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatesmerged_manifestsdebugprocessDebugManifestmergedAndroidManifest.xml
-o
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatesprocessed_resdebugprocessDebugResourcesoutresources-debug.ap_
-R
@E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatesincrementalprocessDebugResourcesresources-list-for-resources-debug.ap_.txt
--auto-add-overlay
--java
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildgeneratednot_namespaced_r_class_sourcesdebugprocessDebugResourcesr
--custom-package
com.example.kerne.myapplication
-0
apk
--output-text-symbols
E:MyProjectsAndroidStudioProjectsMyApplicationappbuildintermediatessymbolsdebugR.txt
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0




edited Nov 20 '18 at 13:30
刘孟德
asked Nov 20 '18 at 13:21


刘孟德刘孟德
14
14
Is your compileSdk set to 28?
– Izabela Orlowska
Nov 20 '18 at 13:55
It is very strange,today when i build a login template,it success. I dont know what happened,but still thank you very much.
– 刘孟德
Nov 28 '18 at 14:16
add a comment |
Is your compileSdk set to 28?
– Izabela Orlowska
Nov 20 '18 at 13:55
It is very strange,today when i build a login template,it success. I dont know what happened,but still thank you very much.
– 刘孟德
Nov 28 '18 at 14:16
Is your compileSdk set to 28?
– Izabela Orlowska
Nov 20 '18 at 13:55
Is your compileSdk set to 28?
– Izabela Orlowska
Nov 20 '18 at 13:55
It is very strange,today when i build a login template,it success. I dont know what happened,but still thank you very much.
– 刘孟德
Nov 28 '18 at 14:16
It is very strange,today when i build a login template,it success. I dont know what happened,but still thank you very much.
– 刘孟德
Nov 28 '18 at 14:16
add a comment |
0
active
oldest
votes
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53393941%2fwhen-use-login-activity-template-as-provided-i-build-failed-with-error-resource%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53393941%2fwhen-use-login-activity-template-as-provided-i-build-failed-with-error-resource%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
Is your compileSdk set to 28?
– Izabela Orlowska
Nov 20 '18 at 13:55
It is very strange,today when i build a login template,it success. I dont know what happened,but still thank you very much.
– 刘孟德
Nov 28 '18 at 14:16