I had a problem with eclipse (mars) on my android project so I looked it up and found this question, I followed the first answer and they made me delete the .project file (which is located in workspace\.metadata\.plugins\org.eclipse.core.resources\.safetable) when I tried to paste it later it was gone. Now I'm getting a lot of errors in eclipse when I try to do stuff like run the project. Is there any way to recover it? Or is there a duplicate I can download from somewhere?
Any help would be appreciated.
Thanks,
If i were you i would upgrade to android studio.
You can try to import your broken project and maybe android studio will fix it for you. Since android studio works with Gradle builds it might fix just that.
Related
I think Android Studio 3.5.3 has many issues needs to fixed.
Recently I had issue with the Android SDK so I had to uninstall it and reinstall to solve the problem.
Now when I try to open another existing project suddenly it generates corrupted classes some with the name R in that project.
I have tried the below options with no success.
Invalidate Cache and Restart.
Clean and rebuild the project.
Sync project with Gradle Files.
Sync with Files
Exit AS, Delete .deal folder, .gradle folder and .iml files. Then import the project.
Again uninstall Android SDK and reinstall.
Unfortunately non of the above helped me.Kindly assist.
what helped me, I had to manually copy the folder with all of the clean java files from the C:\Users\name\Desktop\ProjectName\app\src\main\java\com\ to somewhere safe.
Then I exit Android Studio,Delete everything in \src\main\java\com\ and then i went to the location where i had pasted the folder with my java files, copy them and paste them back to C:\Users\name\Desktop\ProjectName\app\src\main\java\com\
Magical it works,I don't know how but it solved my problem.
I am using the Eclipse ADT bundle and recently updated my Android SDK tools and Android SDK platform tools then thereafter I tried creating a new project and I keep getting an error in my R.java file that seems trivial but I still dont understand how it keeps showing up since it is an autogenerated file.The error is: Syntax error, insert "}" to complete ClassBody. Keep in mind this is when I have just created the project. Also deleting the file and letting it autogenerate still yields the same result that is the error.Please help on how I can solve this,can't seem to find any links to a newer ADT bundle.This error shows up in the console: ERROR: In MenuView, unable to find attribute android:preserveIconSpacing
Navigate to \Android.Support.v7.AppCompat\2x.x.x\content\support\v7\appcompat\res\values\attrs.xml in side your project directory.
or
open the AppCompat project in your workspace and navigate to \res\values\attrs.xml
Find "android:preserveIconSpacing" in attrs.xml file and and comment that line.
Rebuild the project again.
Hope this solves the issue.
i did comment "android:preserveIconSpacing" but generate more error.
i have back up appcompat_v7 and replace it with broken one and every thing goes right again .
This problem occurs when you update the ADT. So it is recommendable to use Android Studio.
If that doesnt work then try what #Harsh Dattani stated in the previous answer which is to Clean or Rebuild the project.
i think it's SDK Manager-Tools not installed.
I am importing an Android Library into a new, fresh, blank Android Project in Eclipse.
When I select the library, everything is fine:
I right-click on the project again to check the library is still happily there...
But it isn't and now I'm very sad.
Has anyone seen this problem before? I've tried cleaning both projects, I've tried reopening Eclipse, I've tried restarting my computer, I've tried rebuilding the library project from scratch. It's really starting to confuse me.
Thanks
Solved.
Workspace, Installation and Libraries needed to all be located on the same physical drive. I guess this is a "feature" or nuance of Eclipse.
Thanks to AIL
I am new to android development. Yesterday night I was working on my project. It was working well. But today morning I open my project I got R error. Then only I noticed my project everything is disabled.
I don't know what is happening. Please help me to resolve this problem.
You need to clean and build your project, and if that didnt work you need to check your manifest and style folder for any error that sometimes it wont hint you for errors in there.
It happened to be before, I had some issues with Java x64 and Android SDK, I couldn't fix it and someone told me to switch java, eclipse and sdk to 32 bits.
This was around 6 months ago, dont know if its the same problem.
This error occurs due to the change in the path of the library required by the Project.
Go in the Java Build Path option and try to remove and add again the library.
Tick the android sdk package name in project properties.
Finally I changed the workspace. It is working. But still now I don't know why all my folders are closed in my previous Workspace.. Thanks to all..
I'm facing a lot of errors while importing MoPub SDK to my workspace. It shows over 5000 errors.
Could you tell me what I'm doing wrong? I've tried to import as Java Project, then as Android Project. I have set it as library, and referencing to it as a library from my main project.
Any help will be appreciated.
Thank you,
Wojtek
I've figured it out. After importing the project Eclipse made Java Build Path -> Source:
mopub-sdk/gen
mobup-sdk/src
But it should be:
mopub-sdk/gen
mobup-sdk/src/main/java
Simple Remove and then Add Folder... solve the issues.