checkbox example android resource compilation failedIs there a way to run Python on Android?How to save an Android Activity state using save instance state?Close/hide the Android Soft KeyboardWhy is the Android emulator so slow? How can we speed up the Android emulator?Is there a unique Android device ID?What is 'Context' on Android?Proper use cases for Android UserManager.isUserAGoat()?Android resource compilation failed when opening a new project in android studioAndroid resource linking failed Android studio 3.3

Sum of all matrix entries

Centering and vertically-aligning two side-by-side listings

Why do companies pay fixed dividends instead of fluid ones?

How to rotate with respect to a specific point in Asymptote?

Why don't combat aircraft have rear-facing *laser* weapons?

Does GNU grep's -o option ignore zero-length matches?

Busted my bike hub & derailleur (I think) - how bad is it?

Meaning of "きっちり" here?

Are there anastrophes in Spanish?

Has someone with no experience at all ever taken off in a plane? Could they?

Why would the command "ls *" generate an error?

Logic - How to say "Not only but also".

Cryptic Battle: Welcome to PSE!

Extract partitions of images after edge detection

Ethan Finds the Maximum Element

How to call my own phone with a loud ringing tone (in order to find it in my house) even if it is in silent mode?

How to make vehicular combat viable in a Post Apocalyptic world?

KISS > DRY principles, what to consider when DRY and KISS are incompatible?

How can women avoid talking during dates while keeping men at ease?

Ultra-Relativistic and Non-Relativistic cases for energy of a particle

What was the stated reason for giving Trump this award?

Should I discourage a group of players from all playing the same class with very similar builds?

Where do I find a toothbrush?

What are the correct pronouns for referring to someone whom I have never met in person when the gender is apparent?



checkbox example android resource compilation failed


Is there a way to run Python on Android?How to save an Android Activity state using save instance state?Close/hide the Android Soft KeyboardWhy is the Android emulator so slow? How can we speed up the Android emulator?Is there a unique Android device ID?What is 'Context' on Android?Proper use cases for Android UserManager.isUserAGoat()?Android resource compilation failed when opening a new project in android studioAndroid resource linking failed Android studio 3.3






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









0

















I have tried to rebuild this app: https://www.mkyong.com/android/android-checkbox-example/ but when I try to run it I got the failure: Android resource compilation failed C:android Kurs programmecheckboxappsrcmainresdrawable-v24ic_launcher_foreground.xml:1: error: not well-formed (invalid token).



I have just tried to open a new project ( hello world that creates automatically during the start). But there is also the same failure , while running taskis in build.



Android resource compilation failed
C:android kurs programmeMyApplication11appsrcmainresdrawable-v24ic_launcher_foreground.xml:1: error: not well-formed (invalid token).










share|improve this question




























  • Post your drawable-v24ic_launcher_foreground.xml file, please

    – S-Sh
    Mar 27 at 21:39

















0

















I have tried to rebuild this app: https://www.mkyong.com/android/android-checkbox-example/ but when I try to run it I got the failure: Android resource compilation failed C:android Kurs programmecheckboxappsrcmainresdrawable-v24ic_launcher_foreground.xml:1: error: not well-formed (invalid token).



I have just tried to open a new project ( hello world that creates automatically during the start). But there is also the same failure , while running taskis in build.



Android resource compilation failed
C:android kurs programmeMyApplication11appsrcmainresdrawable-v24ic_launcher_foreground.xml:1: error: not well-formed (invalid token).










share|improve this question




























  • Post your drawable-v24ic_launcher_foreground.xml file, please

    – S-Sh
    Mar 27 at 21:39













0












0








0








I have tried to rebuild this app: https://www.mkyong.com/android/android-checkbox-example/ but when I try to run it I got the failure: Android resource compilation failed C:android Kurs programmecheckboxappsrcmainresdrawable-v24ic_launcher_foreground.xml:1: error: not well-formed (invalid token).



I have just tried to open a new project ( hello world that creates automatically during the start). But there is also the same failure , while running taskis in build.



Android resource compilation failed
C:android kurs programmeMyApplication11appsrcmainresdrawable-v24ic_launcher_foreground.xml:1: error: not well-formed (invalid token).










share|improve this question

















I have tried to rebuild this app: https://www.mkyong.com/android/android-checkbox-example/ but when I try to run it I got the failure: Android resource compilation failed C:android Kurs programmecheckboxappsrcmainresdrawable-v24ic_launcher_foreground.xml:1: error: not well-formed (invalid token).



I have just tried to open a new project ( hello world that creates automatically during the start). But there is also the same failure , while running taskis in build.



Android resource compilation failed
C:android kurs programmeMyApplication11appsrcmainresdrawable-v24ic_launcher_foreground.xml:1: error: not well-formed (invalid token).







android android-xml xml-drawable






share|improve this question
















share|improve this question













share|improve this question




share|improve this question








edited Mar 30 at 16:02







Tommy Supertramp

















asked Mar 27 at 21:29









Tommy SupertrampTommy Supertramp

67 bronze badges




67 bronze badges















  • Post your drawable-v24ic_launcher_foreground.xml file, please

    – S-Sh
    Mar 27 at 21:39

















  • Post your drawable-v24ic_launcher_foreground.xml file, please

    – S-Sh
    Mar 27 at 21:39
















Post your drawable-v24ic_launcher_foreground.xml file, please

– S-Sh
Mar 27 at 21:39





Post your drawable-v24ic_launcher_foreground.xml file, please

– S-Sh
Mar 27 at 21:39












1 Answer
1






active

oldest

votes


















0



















It is also just red underlined at the first line: package com.mkyong.android; and shows that. Package name 'com.mkyong.android' does not correspond to the file path 'com.example.checkbox'




Your folders structure should correspond to the used package name. So, you should either



1) rename your mkyong folder to example and android to checkbox if you want to keep package name com.mkyong.android



OR



2) change package to com.example.checkbox in the first line of the source code file if you want to keep folders structure



UPDATE



To fix problem with Gradle, try add lines to your top-level build.gradle file:



repositories 
mavenCentral()
jcenter()
google()



As well, update Gradle Plugin and change Gradle version at line distributionUrl in file gradle/wrapper/gradle-wrapper.properties






share|improve this answer




























  • Thanks. no the first line is not red underlined anymore, But the failure is still there : Android resource compilation failed C:android kurs programmecheckbox2appsrcmainresdrawable-v24ic_launcher_foreground.xml:1: error: not well-formed (invalid token). My XML file is in res/layout.main.xml. the other one in res/values/strings.xml. While the java file is at java/com.example.checkbox/MyAndroidAppActivity

    – Tommy Supertramp
    Mar 28 at 16:19











  • "not well-formed" means your XML file has a structural error. Provide the resdrawable-v24ic_launcher_foreground.xml XML file

    – S-Sh
    Mar 28 at 17:09











  • File content looks very strange... Is ic_launcher_foreground drawable used in other resources anywhere?

    – S-Sh
    Mar 28 at 19:34











  • Try following option: delete the file and entire drawable-v24 folder if ic_launcher_foreground.xml is the only file in the folder; then rebuild the project

    – S-Sh
    Mar 28 at 19:34











  • well there are two files in drawable. One is ic_launcher-background.xml and the other is ic_launcher_foreground.xml(v24). If i delete drawable, there will be this failure: see at the question

    – Tommy Supertramp
    Mar 28 at 19:54













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/4.0/"u003ecc by-sa 4.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%2f55386735%2fcheckbox-example-android-resource-compilation-failed%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









0



















It is also just red underlined at the first line: package com.mkyong.android; and shows that. Package name 'com.mkyong.android' does not correspond to the file path 'com.example.checkbox'




Your folders structure should correspond to the used package name. So, you should either



1) rename your mkyong folder to example and android to checkbox if you want to keep package name com.mkyong.android



OR



2) change package to com.example.checkbox in the first line of the source code file if you want to keep folders structure



UPDATE



To fix problem with Gradle, try add lines to your top-level build.gradle file:



repositories 
mavenCentral()
jcenter()
google()



As well, update Gradle Plugin and change Gradle version at line distributionUrl in file gradle/wrapper/gradle-wrapper.properties






share|improve this answer




























  • Thanks. no the first line is not red underlined anymore, But the failure is still there : Android resource compilation failed C:android kurs programmecheckbox2appsrcmainresdrawable-v24ic_launcher_foreground.xml:1: error: not well-formed (invalid token). My XML file is in res/layout.main.xml. the other one in res/values/strings.xml. While the java file is at java/com.example.checkbox/MyAndroidAppActivity

    – Tommy Supertramp
    Mar 28 at 16:19











  • "not well-formed" means your XML file has a structural error. Provide the resdrawable-v24ic_launcher_foreground.xml XML file

    – S-Sh
    Mar 28 at 17:09











  • File content looks very strange... Is ic_launcher_foreground drawable used in other resources anywhere?

    – S-Sh
    Mar 28 at 19:34











  • Try following option: delete the file and entire drawable-v24 folder if ic_launcher_foreground.xml is the only file in the folder; then rebuild the project

    – S-Sh
    Mar 28 at 19:34











  • well there are two files in drawable. One is ic_launcher-background.xml and the other is ic_launcher_foreground.xml(v24). If i delete drawable, there will be this failure: see at the question

    – Tommy Supertramp
    Mar 28 at 19:54
















0



















It is also just red underlined at the first line: package com.mkyong.android; and shows that. Package name 'com.mkyong.android' does not correspond to the file path 'com.example.checkbox'




Your folders structure should correspond to the used package name. So, you should either



1) rename your mkyong folder to example and android to checkbox if you want to keep package name com.mkyong.android



OR



2) change package to com.example.checkbox in the first line of the source code file if you want to keep folders structure



UPDATE



To fix problem with Gradle, try add lines to your top-level build.gradle file:



repositories 
mavenCentral()
jcenter()
google()



As well, update Gradle Plugin and change Gradle version at line distributionUrl in file gradle/wrapper/gradle-wrapper.properties






share|improve this answer




























  • Thanks. no the first line is not red underlined anymore, But the failure is still there : Android resource compilation failed C:android kurs programmecheckbox2appsrcmainresdrawable-v24ic_launcher_foreground.xml:1: error: not well-formed (invalid token). My XML file is in res/layout.main.xml. the other one in res/values/strings.xml. While the java file is at java/com.example.checkbox/MyAndroidAppActivity

    – Tommy Supertramp
    Mar 28 at 16:19











  • "not well-formed" means your XML file has a structural error. Provide the resdrawable-v24ic_launcher_foreground.xml XML file

    – S-Sh
    Mar 28 at 17:09











  • File content looks very strange... Is ic_launcher_foreground drawable used in other resources anywhere?

    – S-Sh
    Mar 28 at 19:34











  • Try following option: delete the file and entire drawable-v24 folder if ic_launcher_foreground.xml is the only file in the folder; then rebuild the project

    – S-Sh
    Mar 28 at 19:34











  • well there are two files in drawable. One is ic_launcher-background.xml and the other is ic_launcher_foreground.xml(v24). If i delete drawable, there will be this failure: see at the question

    – Tommy Supertramp
    Mar 28 at 19:54














0














0










0










It is also just red underlined at the first line: package com.mkyong.android; and shows that. Package name 'com.mkyong.android' does not correspond to the file path 'com.example.checkbox'




Your folders structure should correspond to the used package name. So, you should either



1) rename your mkyong folder to example and android to checkbox if you want to keep package name com.mkyong.android



OR



2) change package to com.example.checkbox in the first line of the source code file if you want to keep folders structure



UPDATE



To fix problem with Gradle, try add lines to your top-level build.gradle file:



repositories 
mavenCentral()
jcenter()
google()



As well, update Gradle Plugin and change Gradle version at line distributionUrl in file gradle/wrapper/gradle-wrapper.properties






share|improve this answer

















It is also just red underlined at the first line: package com.mkyong.android; and shows that. Package name 'com.mkyong.android' does not correspond to the file path 'com.example.checkbox'




Your folders structure should correspond to the used package name. So, you should either



1) rename your mkyong folder to example and android to checkbox if you want to keep package name com.mkyong.android



OR



2) change package to com.example.checkbox in the first line of the source code file if you want to keep folders structure



UPDATE



To fix problem with Gradle, try add lines to your top-level build.gradle file:



repositories 
mavenCentral()
jcenter()
google()



As well, update Gradle Plugin and change Gradle version at line distributionUrl in file gradle/wrapper/gradle-wrapper.properties







share|improve this answer















share|improve this answer




share|improve this answer








edited Mar 28 at 21:32

























answered Mar 27 at 21:38









S-ShS-Sh

1,2282 gold badges5 silver badges9 bronze badges




1,2282 gold badges5 silver badges9 bronze badges















  • Thanks. no the first line is not red underlined anymore, But the failure is still there : Android resource compilation failed C:android kurs programmecheckbox2appsrcmainresdrawable-v24ic_launcher_foreground.xml:1: error: not well-formed (invalid token). My XML file is in res/layout.main.xml. the other one in res/values/strings.xml. While the java file is at java/com.example.checkbox/MyAndroidAppActivity

    – Tommy Supertramp
    Mar 28 at 16:19











  • "not well-formed" means your XML file has a structural error. Provide the resdrawable-v24ic_launcher_foreground.xml XML file

    – S-Sh
    Mar 28 at 17:09











  • File content looks very strange... Is ic_launcher_foreground drawable used in other resources anywhere?

    – S-Sh
    Mar 28 at 19:34











  • Try following option: delete the file and entire drawable-v24 folder if ic_launcher_foreground.xml is the only file in the folder; then rebuild the project

    – S-Sh
    Mar 28 at 19:34











  • well there are two files in drawable. One is ic_launcher-background.xml and the other is ic_launcher_foreground.xml(v24). If i delete drawable, there will be this failure: see at the question

    – Tommy Supertramp
    Mar 28 at 19:54


















  • Thanks. no the first line is not red underlined anymore, But the failure is still there : Android resource compilation failed C:android kurs programmecheckbox2appsrcmainresdrawable-v24ic_launcher_foreground.xml:1: error: not well-formed (invalid token). My XML file is in res/layout.main.xml. the other one in res/values/strings.xml. While the java file is at java/com.example.checkbox/MyAndroidAppActivity

    – Tommy Supertramp
    Mar 28 at 16:19











  • "not well-formed" means your XML file has a structural error. Provide the resdrawable-v24ic_launcher_foreground.xml XML file

    – S-Sh
    Mar 28 at 17:09











  • File content looks very strange... Is ic_launcher_foreground drawable used in other resources anywhere?

    – S-Sh
    Mar 28 at 19:34











  • Try following option: delete the file and entire drawable-v24 folder if ic_launcher_foreground.xml is the only file in the folder; then rebuild the project

    – S-Sh
    Mar 28 at 19:34











  • well there are two files in drawable. One is ic_launcher-background.xml and the other is ic_launcher_foreground.xml(v24). If i delete drawable, there will be this failure: see at the question

    – Tommy Supertramp
    Mar 28 at 19:54

















Thanks. no the first line is not red underlined anymore, But the failure is still there : Android resource compilation failed C:android kurs programmecheckbox2appsrcmainresdrawable-v24ic_launcher_foreground.xml:1: error: not well-formed (invalid token). My XML file is in res/layout.main.xml. the other one in res/values/strings.xml. While the java file is at java/com.example.checkbox/MyAndroidAppActivity

– Tommy Supertramp
Mar 28 at 16:19





Thanks. no the first line is not red underlined anymore, But the failure is still there : Android resource compilation failed C:android kurs programmecheckbox2appsrcmainresdrawable-v24ic_launcher_foreground.xml:1: error: not well-formed (invalid token). My XML file is in res/layout.main.xml. the other one in res/values/strings.xml. While the java file is at java/com.example.checkbox/MyAndroidAppActivity

– Tommy Supertramp
Mar 28 at 16:19













"not well-formed" means your XML file has a structural error. Provide the resdrawable-v24ic_launcher_foreground.xml XML file

– S-Sh
Mar 28 at 17:09





"not well-formed" means your XML file has a structural error. Provide the resdrawable-v24ic_launcher_foreground.xml XML file

– S-Sh
Mar 28 at 17:09













File content looks very strange... Is ic_launcher_foreground drawable used in other resources anywhere?

– S-Sh
Mar 28 at 19:34





File content looks very strange... Is ic_launcher_foreground drawable used in other resources anywhere?

– S-Sh
Mar 28 at 19:34













Try following option: delete the file and entire drawable-v24 folder if ic_launcher_foreground.xml is the only file in the folder; then rebuild the project

– S-Sh
Mar 28 at 19:34





Try following option: delete the file and entire drawable-v24 folder if ic_launcher_foreground.xml is the only file in the folder; then rebuild the project

– S-Sh
Mar 28 at 19:34













well there are two files in drawable. One is ic_launcher-background.xml and the other is ic_launcher_foreground.xml(v24). If i delete drawable, there will be this failure: see at the question

– Tommy Supertramp
Mar 28 at 19:54






well there are two files in drawable. One is ic_launcher-background.xml and the other is ic_launcher_foreground.xml(v24). If i delete drawable, there will be this failure: see at the question

– Tommy Supertramp
Mar 28 at 19:54





















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.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55386735%2fcheckbox-example-android-resource-compilation-failed%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

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript