Problems to import ProgressDialog class
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I want to use ProgressDialog
in a project, but I can not import that class into my MainActivity.java
.
When I try to write import android.app.ProgressDialog;
the line of code gets hidden.
This problem occurs in all projects, even a new and empty project.
MainActivity.java
app.gradle
the error I got
android progressdialog
|
show 13 more comments
I want to use ProgressDialog
in a project, but I can not import that class into my MainActivity.java
.
When I try to write import android.app.ProgressDialog;
the line of code gets hidden.
This problem occurs in all projects, even a new and empty project.
MainActivity.java
app.gradle
the error I got
android progressdialog
2
what is your problem?
– Dyaniyal Nadar
Jan 3 at 14:05
1
Problem is, its class does not add to the program. You should be asking forwhy
– ray
Jan 3 at 14:05
Please do not give a negative rating, I am a beginner. and I can not speak English well.
– Daniel
Jan 3 at 15:37
1
Please paste your complete activity code by editing the question, that will help to understand your problem, also paste the gradle file for convenience.
– sourav.bh
Jan 3 at 20:19
1
You can post the code. And the link to the photo (just in case). Someone (...) will convert it for you.
– Fantômas
Jan 3 at 20:19
|
show 13 more comments
I want to use ProgressDialog
in a project, but I can not import that class into my MainActivity.java
.
When I try to write import android.app.ProgressDialog;
the line of code gets hidden.
This problem occurs in all projects, even a new and empty project.
MainActivity.java
app.gradle
the error I got
android progressdialog
I want to use ProgressDialog
in a project, but I can not import that class into my MainActivity.java
.
When I try to write import android.app.ProgressDialog;
the line of code gets hidden.
This problem occurs in all projects, even a new and empty project.
MainActivity.java
app.gradle
the error I got
android progressdialog
android progressdialog
edited Jan 4 at 18:27
sourav.bh
4401519
4401519
asked Jan 3 at 14:01
DanielDaniel
67
67
2
what is your problem?
– Dyaniyal Nadar
Jan 3 at 14:05
1
Problem is, its class does not add to the program. You should be asking forwhy
– ray
Jan 3 at 14:05
Please do not give a negative rating, I am a beginner. and I can not speak English well.
– Daniel
Jan 3 at 15:37
1
Please paste your complete activity code by editing the question, that will help to understand your problem, also paste the gradle file for convenience.
– sourav.bh
Jan 3 at 20:19
1
You can post the code. And the link to the photo (just in case). Someone (...) will convert it for you.
– Fantômas
Jan 3 at 20:19
|
show 13 more comments
2
what is your problem?
– Dyaniyal Nadar
Jan 3 at 14:05
1
Problem is, its class does not add to the program. You should be asking forwhy
– ray
Jan 3 at 14:05
Please do not give a negative rating, I am a beginner. and I can not speak English well.
– Daniel
Jan 3 at 15:37
1
Please paste your complete activity code by editing the question, that will help to understand your problem, also paste the gradle file for convenience.
– sourav.bh
Jan 3 at 20:19
1
You can post the code. And the link to the photo (just in case). Someone (...) will convert it for you.
– Fantômas
Jan 3 at 20:19
2
2
what is your problem?
– Dyaniyal Nadar
Jan 3 at 14:05
what is your problem?
– Dyaniyal Nadar
Jan 3 at 14:05
1
1
Problem is, its class does not add to the program. You should be asking for
why
– ray
Jan 3 at 14:05
Problem is, its class does not add to the program. You should be asking for
why
– ray
Jan 3 at 14:05
Please do not give a negative rating, I am a beginner. and I can not speak English well.
– Daniel
Jan 3 at 15:37
Please do not give a negative rating, I am a beginner. and I can not speak English well.
– Daniel
Jan 3 at 15:37
1
1
Please paste your complete activity code by editing the question, that will help to understand your problem, also paste the gradle file for convenience.
– sourav.bh
Jan 3 at 20:19
Please paste your complete activity code by editing the question, that will help to understand your problem, also paste the gradle file for convenience.
– sourav.bh
Jan 3 at 20:19
1
1
You can post the code. And the link to the photo (just in case). Someone (...) will convert it for you.
– Fantômas
Jan 3 at 20:19
You can post the code. And the link to the photo (just in case). Someone (...) will convert it for you.
– Fantômas
Jan 3 at 20:19
|
show 13 more comments
2 Answers
2
active
oldest
votes
I don't see anything wrong in your project settings from the screenshots you attached. I would suggest you to try Invalidate Cache / Restart
from the File menu.
I did this, but did not work
– Daniel
Jan 4 at 19:05
@Daniel what happens when you writeimport android.app.ProgressDialog;
this manually? In your post, you mentioned that line gets hidden but that doesn't clear the situation.
– sourav.bh
Jan 4 at 20:10
my problem was solved. Thank you for giving me your time.
– Daniel
Jan 4 at 20:59
nice to hear that you solved it yourself. mark your answer as accepted so that others find it useful.
– sourav.bh
Jan 4 at 21:06
Yes of course. After 15 hours.
– Daniel
Jan 4 at 22:13
add a comment |
The problem was solved.
I deleted the android studio
and also
(important -->)
deleted the gradle
folder and the android studio 3.2
folder and reinstalled android studio
.
Finally my problem was resolved.
Screenshot for gradle & androidstudio folders
add a comment |
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%2f54023808%2fproblems-to-import-progressdialog-class%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
I don't see anything wrong in your project settings from the screenshots you attached. I would suggest you to try Invalidate Cache / Restart
from the File menu.
I did this, but did not work
– Daniel
Jan 4 at 19:05
@Daniel what happens when you writeimport android.app.ProgressDialog;
this manually? In your post, you mentioned that line gets hidden but that doesn't clear the situation.
– sourav.bh
Jan 4 at 20:10
my problem was solved. Thank you for giving me your time.
– Daniel
Jan 4 at 20:59
nice to hear that you solved it yourself. mark your answer as accepted so that others find it useful.
– sourav.bh
Jan 4 at 21:06
Yes of course. After 15 hours.
– Daniel
Jan 4 at 22:13
add a comment |
I don't see anything wrong in your project settings from the screenshots you attached. I would suggest you to try Invalidate Cache / Restart
from the File menu.
I did this, but did not work
– Daniel
Jan 4 at 19:05
@Daniel what happens when you writeimport android.app.ProgressDialog;
this manually? In your post, you mentioned that line gets hidden but that doesn't clear the situation.
– sourav.bh
Jan 4 at 20:10
my problem was solved. Thank you for giving me your time.
– Daniel
Jan 4 at 20:59
nice to hear that you solved it yourself. mark your answer as accepted so that others find it useful.
– sourav.bh
Jan 4 at 21:06
Yes of course. After 15 hours.
– Daniel
Jan 4 at 22:13
add a comment |
I don't see anything wrong in your project settings from the screenshots you attached. I would suggest you to try Invalidate Cache / Restart
from the File menu.
I don't see anything wrong in your project settings from the screenshots you attached. I would suggest you to try Invalidate Cache / Restart
from the File menu.
answered Jan 4 at 17:36
sourav.bhsourav.bh
4401519
4401519
I did this, but did not work
– Daniel
Jan 4 at 19:05
@Daniel what happens when you writeimport android.app.ProgressDialog;
this manually? In your post, you mentioned that line gets hidden but that doesn't clear the situation.
– sourav.bh
Jan 4 at 20:10
my problem was solved. Thank you for giving me your time.
– Daniel
Jan 4 at 20:59
nice to hear that you solved it yourself. mark your answer as accepted so that others find it useful.
– sourav.bh
Jan 4 at 21:06
Yes of course. After 15 hours.
– Daniel
Jan 4 at 22:13
add a comment |
I did this, but did not work
– Daniel
Jan 4 at 19:05
@Daniel what happens when you writeimport android.app.ProgressDialog;
this manually? In your post, you mentioned that line gets hidden but that doesn't clear the situation.
– sourav.bh
Jan 4 at 20:10
my problem was solved. Thank you for giving me your time.
– Daniel
Jan 4 at 20:59
nice to hear that you solved it yourself. mark your answer as accepted so that others find it useful.
– sourav.bh
Jan 4 at 21:06
Yes of course. After 15 hours.
– Daniel
Jan 4 at 22:13
I did this, but did not work
– Daniel
Jan 4 at 19:05
I did this, but did not work
– Daniel
Jan 4 at 19:05
@Daniel what happens when you write
import android.app.ProgressDialog;
this manually? In your post, you mentioned that line gets hidden but that doesn't clear the situation.– sourav.bh
Jan 4 at 20:10
@Daniel what happens when you write
import android.app.ProgressDialog;
this manually? In your post, you mentioned that line gets hidden but that doesn't clear the situation.– sourav.bh
Jan 4 at 20:10
my problem was solved. Thank you for giving me your time.
– Daniel
Jan 4 at 20:59
my problem was solved. Thank you for giving me your time.
– Daniel
Jan 4 at 20:59
nice to hear that you solved it yourself. mark your answer as accepted so that others find it useful.
– sourav.bh
Jan 4 at 21:06
nice to hear that you solved it yourself. mark your answer as accepted so that others find it useful.
– sourav.bh
Jan 4 at 21:06
Yes of course. After 15 hours.
– Daniel
Jan 4 at 22:13
Yes of course. After 15 hours.
– Daniel
Jan 4 at 22:13
add a comment |
The problem was solved.
I deleted the android studio
and also
(important -->)
deleted the gradle
folder and the android studio 3.2
folder and reinstalled android studio
.
Finally my problem was resolved.
Screenshot for gradle & androidstudio folders
add a comment |
The problem was solved.
I deleted the android studio
and also
(important -->)
deleted the gradle
folder and the android studio 3.2
folder and reinstalled android studio
.
Finally my problem was resolved.
Screenshot for gradle & androidstudio folders
add a comment |
The problem was solved.
I deleted the android studio
and also
(important -->)
deleted the gradle
folder and the android studio 3.2
folder and reinstalled android studio
.
Finally my problem was resolved.
Screenshot for gradle & androidstudio folders
The problem was solved.
I deleted the android studio
and also
(important -->)
deleted the gradle
folder and the android studio 3.2
folder and reinstalled android studio
.
Finally my problem was resolved.
Screenshot for gradle & androidstudio folders
edited Jan 5 at 14:08
answered Jan 4 at 20:57
DanielDaniel
67
67
add a comment |
add a comment |
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%2f54023808%2fproblems-to-import-progressdialog-class%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
2
what is your problem?
– Dyaniyal Nadar
Jan 3 at 14:05
1
Problem is, its class does not add to the program. You should be asking for
why
– ray
Jan 3 at 14:05
Please do not give a negative rating, I am a beginner. and I can not speak English well.
– Daniel
Jan 3 at 15:37
1
Please paste your complete activity code by editing the question, that will help to understand your problem, also paste the gradle file for convenience.
– sourav.bh
Jan 3 at 20:19
1
You can post the code. And the link to the photo (just in case). Someone (...) will convert it for you.
– Fantômas
Jan 3 at 20:19