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;
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).

add a comment
|
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).

Post yourdrawable-v24ic_launcher_foreground.xml
file, please
– S-Sh
Mar 27 at 21:39
add a comment
|
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).

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).


edited Mar 30 at 16:02
Tommy Supertramp
asked Mar 27 at 21:29
Tommy SupertrampTommy Supertramp
67 bronze badges
67 bronze badges
Post yourdrawable-v24ic_launcher_foreground.xml
file, please
– S-Sh
Mar 27 at 21:39
add a comment
|
Post yourdrawable-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
add a comment
|
1 Answer
1
active
oldest
votes
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
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 theresdrawable-v24ic_launcher_foreground.xml
XML file
– S-Sh
Mar 28 at 17:09
File content looks very strange... Isic_launcher_foreground
drawable used in other resources anywhere?
– S-Sh
Mar 28 at 19:34
Try following option: delete the file and entiredrawable-v24
folder ific_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
|
show 4 more comments
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
);
);
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%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
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
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 theresdrawable-v24ic_launcher_foreground.xml
XML file
– S-Sh
Mar 28 at 17:09
File content looks very strange... Isic_launcher_foreground
drawable used in other resources anywhere?
– S-Sh
Mar 28 at 19:34
Try following option: delete the file and entiredrawable-v24
folder ific_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
|
show 4 more comments
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
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 theresdrawable-v24ic_launcher_foreground.xml
XML file
– S-Sh
Mar 28 at 17:09
File content looks very strange... Isic_launcher_foreground
drawable used in other resources anywhere?
– S-Sh
Mar 28 at 19:34
Try following option: delete the file and entiredrawable-v24
folder ific_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
|
show 4 more comments
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
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
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 theresdrawable-v24ic_launcher_foreground.xml
XML file
– S-Sh
Mar 28 at 17:09
File content looks very strange... Isic_launcher_foreground
drawable used in other resources anywhere?
– S-Sh
Mar 28 at 19:34
Try following option: delete the file and entiredrawable-v24
folder ific_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
|
show 4 more comments
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 theresdrawable-v24ic_launcher_foreground.xml
XML file
– S-Sh
Mar 28 at 17:09
File content looks very strange... Isic_launcher_foreground
drawable used in other resources anywhere?
– S-Sh
Mar 28 at 19:34
Try following option: delete the file and entiredrawable-v24
folder ific_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
|
show 4 more comments
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%2f55386735%2fcheckbox-example-android-resource-compilation-failed%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
Post your
drawable-v24ic_launcher_foreground.xml
file, please– S-Sh
Mar 27 at 21:39