I'm currently using intellij idea 2020.3.1 . I have done many mini projects with java and flutter and i have never faced any problem with the autocomplete feature/intellisense before until now. It just suddenly stopped working and i have been trying to fix it for days. I have tried the following solutions to no avail.
Disable the power mode off
I have marked my project root directory as the sources root
I set up my JDK correctly
I have done the "invalidate caches/restart"
All to no avail. Is there anything else i could do, please?enter image description here
After much research on the internet, i found out that the problem was from Settings|Editor|Code Completion|Show the documentation popup , was unchecked. How it became unchecked(I cant remember doing it), i dont really know. After i checked it, the code completion feature started working
I try to migrate my old project to Android X. I searched about it and migrated successfully.
I have one problem.In my project,I'm using Card.io. I downloaded and imported into the project from here
https://github.com/card-io/card.io-Android-source
When I try to run my app ,I have this error message
I searched much ,but still can't solve this problem. Unfortunately,I can't open new issue in Github repository, because repository has only read status.
Can anyone explain ,how I can solve this problem?
Thanks
We converted to AndroidX a large project and use Card.io.
We have
implementation 'io.card:android-sdk:5.5.1'
in the build.gradle and have no issues.
Are you trying to use the source? If you are and don't customize the source, the library implementation should be the best usage.
Yesterday everything on my app was working flawlessly but today when I opened Android Studio all the xml files were corrupt(?-not sure if this is the right term)
Every one looks like this
I had face same issue today and below are few steps which i had done and i got success to resolve this issue.
Just copy your project into another directory or change project location. and open your project again this simple step works for me.
Few more steps which i had tried may be this one works for you.
Delete all cache file from below location
C:\Users{your pc name}.gradle\caches
C:\Users{your pc name}.AndroidStudio3.2\system\caches
Sync you project gradle.
Hope this will help you. This kind of error is really frustrating.
I'm on Eclipse for hours now and I didn't found a solution yet for my problem even after many searches on internet: I have no more R.java file on my projects.
On just created or on my old projects, i don't have R file anymore and I tried so many solutions (uninstall, re-install Eclipse, clean my project, check all my XMLs, fix problem with android tool and so on ...)
Please someone can tell me what to do in this case?
Hey If you just updated to ADT Rev 22 :
I had the problem too. There is a new component in the Tools folder called "Android SDK Build-tools" that needs to be installed.
Step 1
Open the Android SDK Manager
Step 2
Select the newly added Build Tools and install. (If problem stays then go to Project Properties => Java Build Path => Order and Export and check Android Private Libraries, then clean and build project.
It may be necessary to repeat the process, restart the SDK Manager after the update and make sure it looks like this (all tools installed):
More info:https://groups.google.com/forum/?fromgroups=#!topic/android-developers/rCaeT3qckoE%5B1-25-false%5D
Perhaps in Project Properties -> Java Build Path -> Libraries you don't have:
Android 4.2.2 (or other version)
Android Dependencies ?
If so, then right click project - > Android tools -> fix android properties
and see if this library showed up.
Thank you all for saving me! I've spent the whole afternoon on search this error.
Finally, my project works.
By the way, I also encountered one problem which i wanna share with you:
After upgrading, even if my project has not errors anymore. During runtime, it seems it couldn't find the classes from the jars placed in \libs.
Go into Project=>properties => Java build path= > Order and Export.
Please make sure all your jars are checked.
If this problem occurs suddenly in a well working project,
the first step is to find whether the problem occurs only in the current project or in all other projects.
if all other projects in the current workspace are working then 90% problem is with XML / mainfestfile/resourse file that you edited recently.
This error is not shown as red mark we have to find out what we have done recently in these files.
try this
sudo apt-get install lib32stdc++6 lib32z1 lib32z1-dev
it solved my problem
Close your eclipse and after refreshing system, try to open Eclipse again. I think you are using Emulator along with the eclipse. It may be because of the low Memory problem (RAM) of your system. I used to face the same problem when I use Emulator
whenever there is any mistakes in any of the xmls the R goes missing when a build or clean happens so check for any xml errors in your project unless you fix it you cant get back your R on clean or build. fix the xml files and perform a clean you will have the R generated. Also check in File->properties->Builders and see if everything is checked
I was using Eclipse Indigo and nothing I tried worked. I ended up downloading Juno SR2, reinstalling the ADT, and now everything works again.
Reinstall everything and it'll work.. i.e. go back to Google SDK or w.e. you're using and download it.
Update it to latest in SDK Manager.
Go into Eclipse-Project-Prefs-Java build path-order/export TICK EVERYTHING.
problem: No R file get generated.
guess: Try cleaning project if it is old one. Else create new project with no R get generated and with no compile errors but this: no project.apk
In this case you have to check your SDK for the built-tools. May not be installed after updating SDK.
Thus download them if not download here, then put them under directory: SDK/built-tools folder. Lastly, and most important, is to Run the SDK As Administrator. This guarantees refreshing SDK with all packages appearing in it.
Install the SDK-Built-Tools or any missing packages according to the above link and you're done.
hope this helps.
Try one thing, create a new Android Project and transfer all those files which are in the previous project. That worked for me.
In my case there is error due to "&" inside strings.xml file(but error not shown) for declaring string for a array type. Now the problem has been solved as I changed "&" to "and".
So, please make sure that you do not have such silly use of symbols, and clean the project.
I have had the same kind of problem, however Rechecking all XML files in the Resources folder was helpful in my case. I found syntax error in my XML files. Cleaning and building the project again can be helpful sometimes too.
I had the dreaded not more R.java.
Some of the things I've used in the past:
Clean / rebuild (the first thing we all try)
Restart eclipse (optionally reboot pc/mac)
Update both SDK/ADT eclipse plugin to latest version
Create new eclipse workspace and import project
Enable Verbose AAPT build output Eclipse menu>Preferences>Android>Build
Port project to Android Studio / Gradle (this helped my actually see the AAPT error i was getting Error Code:138)
Delete recent XML changes - Ultimately I found deleting recent menu.xml files I'd added and commenting out where they were referenced fixed the issue and I finally got R.java.
I got the error recently and had found no fault in any layout or value file. After a lot of tries I add another Activity and the R.java was build and the error disappeared. I don't know why this occur, but it takes me hours.
I'm new at Android world. Just learning. I want to study build this project. But it fails for all R.* members and so other reasons. After searching the web I found several blogs to fix generated R.java files. But I couldn't fix it. Maybe I don't much about Android and Java. Can anybody make a Eclipse project out of this example which is build properly? Thanks in advance!
Try cleaning your project. If that won't work check your xml files for any error. That's the most common reason for getting errors related to R.java*.