code is underlined for white spaces in android studio but even after correcting it











up vote
-1
down vote

favorite












code is underlined(red) for white spaces in android studio but even after correcting it and even the gradle is not sync(ing) the code and going to of my hands please check the image and give a solution



image: https://i.stack.imgur.com/e9zTv.png



image 2 : https://i.stack.imgur.com/DJsQj.png










share|improve this question




















  • 1




    Can you please show how your mLocationListener is declared?
    – Mikhail Olshanski
    Nov 11 at 7:10






  • 1




    Don't link to images of code. Put the code here, and tell us what the error message is for the line
    – Gabe Sechan
    Nov 11 at 7:16










  • Anyway, the IDE gives you a tooltip about Incompatible types, looks like the problem might have something to do with mLocationListener's declaration. By the way, it seems that the gradle sync works and it just geives you a warning message about migrating from compile to implementation and/or api
    – Mikhail Olshanski
    Nov 11 at 7:23










  • added another pic please try to look at it now
    – hey SRC
    Nov 11 at 10:58















up vote
-1
down vote

favorite












code is underlined(red) for white spaces in android studio but even after correcting it and even the gradle is not sync(ing) the code and going to of my hands please check the image and give a solution



image: https://i.stack.imgur.com/e9zTv.png



image 2 : https://i.stack.imgur.com/DJsQj.png










share|improve this question




















  • 1




    Can you please show how your mLocationListener is declared?
    – Mikhail Olshanski
    Nov 11 at 7:10






  • 1




    Don't link to images of code. Put the code here, and tell us what the error message is for the line
    – Gabe Sechan
    Nov 11 at 7:16










  • Anyway, the IDE gives you a tooltip about Incompatible types, looks like the problem might have something to do with mLocationListener's declaration. By the way, it seems that the gradle sync works and it just geives you a warning message about migrating from compile to implementation and/or api
    – Mikhail Olshanski
    Nov 11 at 7:23










  • added another pic please try to look at it now
    – hey SRC
    Nov 11 at 10:58













up vote
-1
down vote

favorite









up vote
-1
down vote

favorite











code is underlined(red) for white spaces in android studio but even after correcting it and even the gradle is not sync(ing) the code and going to of my hands please check the image and give a solution



image: https://i.stack.imgur.com/e9zTv.png



image 2 : https://i.stack.imgur.com/DJsQj.png










share|improve this question















code is underlined(red) for white spaces in android studio but even after correcting it and even the gradle is not sync(ing) the code and going to of my hands please check the image and give a solution



image: https://i.stack.imgur.com/e9zTv.png



image 2 : https://i.stack.imgur.com/DJsQj.png







java android android-studio android-gradle whitespace






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 11 at 10:57

























asked Nov 11 at 6:59









hey SRC

42




42








  • 1




    Can you please show how your mLocationListener is declared?
    – Mikhail Olshanski
    Nov 11 at 7:10






  • 1




    Don't link to images of code. Put the code here, and tell us what the error message is for the line
    – Gabe Sechan
    Nov 11 at 7:16










  • Anyway, the IDE gives you a tooltip about Incompatible types, looks like the problem might have something to do with mLocationListener's declaration. By the way, it seems that the gradle sync works and it just geives you a warning message about migrating from compile to implementation and/or api
    – Mikhail Olshanski
    Nov 11 at 7:23










  • added another pic please try to look at it now
    – hey SRC
    Nov 11 at 10:58














  • 1




    Can you please show how your mLocationListener is declared?
    – Mikhail Olshanski
    Nov 11 at 7:10






  • 1




    Don't link to images of code. Put the code here, and tell us what the error message is for the line
    – Gabe Sechan
    Nov 11 at 7:16










  • Anyway, the IDE gives you a tooltip about Incompatible types, looks like the problem might have something to do with mLocationListener's declaration. By the way, it seems that the gradle sync works and it just geives you a warning message about migrating from compile to implementation and/or api
    – Mikhail Olshanski
    Nov 11 at 7:23










  • added another pic please try to look at it now
    – hey SRC
    Nov 11 at 10:58








1




1




Can you please show how your mLocationListener is declared?
– Mikhail Olshanski
Nov 11 at 7:10




Can you please show how your mLocationListener is declared?
– Mikhail Olshanski
Nov 11 at 7:10




1




1




Don't link to images of code. Put the code here, and tell us what the error message is for the line
– Gabe Sechan
Nov 11 at 7:16




Don't link to images of code. Put the code here, and tell us what the error message is for the line
– Gabe Sechan
Nov 11 at 7:16












Anyway, the IDE gives you a tooltip about Incompatible types, looks like the problem might have something to do with mLocationListener's declaration. By the way, it seems that the gradle sync works and it just geives you a warning message about migrating from compile to implementation and/or api
– Mikhail Olshanski
Nov 11 at 7:23




Anyway, the IDE gives you a tooltip about Incompatible types, looks like the problem might have something to do with mLocationListener's declaration. By the way, it seems that the gradle sync works and it just geives you a warning message about migrating from compile to implementation and/or api
– Mikhail Olshanski
Nov 11 at 7:23












added another pic please try to look at it now
– hey SRC
Nov 11 at 10:58




added another pic please try to look at it now
– hey SRC
Nov 11 at 10:58

















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',
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%2f53246537%2fcode-is-underlined-for-white-spaces-in-android-studio-but-even-after-correcting%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53246537%2fcode-is-underlined-for-white-spaces-in-android-studio-but-even-after-correcting%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

Bressuire

Vorschmack

Quarantine