Get this empty folders and error in Project View Andoid Studio - android

I all of a sudden (actually a while ago, but it only bothers me now that I started to work on that app again) just got these empty folders in my app under the Project view. It only shows in the Project view. Those folders are empty. The app still runs fine under the emulator.
I would appreciate help fixing those.

If they aren't causing any harm/hindrance while building your project, then you can try deleting them. Android Studio will automatically warn you if there any usages of a directory/file which you're trying to delete.
Thanks to Jetbrains for this amazing feature.

Related

Android studio fails to index R.xxx class with huge project

I'm working on a 1M+ LOC with tons of XML files. The problem I usually get is that the R.xxx classes are usually unresolved after reopening Android Studio (currently I use AS 3.4, but this happened long before). The only solution I know is: close AS, remove .idea folder and then open AS again. This solution works but quite annoying since I lost my workspace information (like opened files history).
I wonder any of you guys experience this and if you have a better solution, please share with me.
I guarantee that the project I am working on has correct configuration and no syntax errors.

How do I get rid of (1) after android studio project files?

So I have been working on an app for a project in the android studio for school. Since I am working on it both at home and at school, I uploaded my project to google drive to access it at school. However, when I downloaded the project, unzipped it, and opened it in Android Studio, nothing is showing up and I can't build, clean, or run anything for it. I attached pictures. I suspect this may be due to the fact that since I already uploaded a version of my project to drive before, it added (1) to the end of almost every file in the project. I'm not sure whether this is causing the problems in the android studio. How do I remove them, any suggestions?
ok looks like there is actually no way to do this, oof

Android Studio 0.2.7 Project view doesn't show my project

I've just updated Android Studio to 0.2.7 and my Project view (Alt+1) has gone strange.
That's all I get showing up there. I've tried restarting the IDE but it's still the same.
Anyone got any ideas what's happened?
EDIT: I've reverted to a Backup of my project from a few days ago and just copied in my java and res folder, and it seems to be working fine, but I'm still curious as to what happened in my original project
I made a new project and copied in the files.
This seems to be the "go to" fix for and Android Studio projects after it updates for me :p.

Problems after updating to Android SDK 20 in Eclipse

I updated tools in my Eclipse first by going to Help->Check For Updates and installing everything i that it suggested. Then by going to Window->Android SDK Manager and updating multiple things including my SDK version.
After I have finished my update all my Android projects got a nice red box with an x inside it. I explored the projects and noticed that none of them had any errors inside the project just the project itself had the error icon. I searched online and i found that other people had similar problems. So i thought i found the solution. Alas after cleaning and building the project I got additional error icons next to multiple java files in my projects. Eclipse cannot locate the automatically generated R files when it tries to import them and all the imports are selected red.
I tried deleting the whole content of .android directory (starting with specific few files then the whole content) but that did not bring desired results.
So i have deleted the newly generated files and restored all the old ones.
When I clean and build the projects again all the errors disappear but only until I try to run the project again and then same error appears:
Your project contains error(s), please fix it before running it.
I have also found a related question. It claims that there must be a problem with my xml files. I did not modify any of my xml files since updating the tools so I dont know what could cause them to have errors.
Any ideas as to what is going on??
I've found that eclipse is now picking up errors that it didn't pick up before, because they updated lint, you may have to check all your files and see if there is an error because of this, if it doesn't work try removing Android from the build and reattach it, clean the project, build project, make sure the activities are using the right R files and check what lint says, its like a little square with a tick in it I think.
I had exactly the same problem, solved by removing any imports of R in my code and then cleaning the project
Strangest thing just happened. Even though I have done this 2 times before I have again deleted all my files in .android folder exited my Eclipse and opened it back up again. All the errors were gone and most of my projects work correctly. I have spend a lot of time on this problem and i dont know how it got resolved but Im glad its working again.

Android application giving a weird error in Eclipse

i put this question in this forum because i am not sure whether this is an eclipse error or an Android error.
yesterday i created an Android application using Google Maps and GPS on Eclipse and it build and ran successfully however today i wanted to do some modification to the code so i started eclipse but it gave me an error.
SDK parse failed
if i try to run it. it says the apk cannot find. how can that be happened? the same application ran successfully on the same environment yesterday. i am using Ubuntu 10.04
Thanks !!
There is a problem with your project, as evidenced by the red x icon on your project title bar shown in the image above. Right-click your project, choose Properties and go through all your properties to make sure they are all still valid. It might be a reference to one of the jar files.
I get this problem all the time, hopefully my solution works for you.
To work around, goto your libraries inside the properties page.
Add any library and then rebuild your project.
Go back and remove the library later for clean up.
The project should still build.

Categories

Resources