Eclipse does not open my workspace - android

I am getting this error when loading my workspace in eclipse.
An error has occurred.See the log file
D:\XXX\App_name\.metadata\.log.
I can able to open other workspaces and also able to create new onw.I didnt save the copy of my code.Please anyone help me?
Thanks!!!

Thanks for all who commented for my question.I tried your answers but I can resolve that issue by removing this folder from my .plugin folder,
.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi.
Thanks

Try typing the following in the console:
C:\path\to\eclipse\eclipse -clean

I faced similar problem while running Eclipse neon with Java 9(latest). I used to get error in .metadata.log . Class not found exception.
Checked in eclipse forum and they had a know error with Java 9. Work around was to use java 8. I tried that and it worked for me. Fix should be out anytime soon.
There are other work around but i did not need it since my project required java 8 anyhow.

When you try to add plugins via Eclipse IDE (Help->install new software) the problem occurs.
I suggest you to get the relevant plugin using there official website or in IDE (Help ->Eclipse market place).

Related

Abnormal behavior in Android Studio

Getting error in Android Studio in an existing project while adding any new file there. Without adding any change the code is running perfectly. I have tried with the following solution :
c:\Users\.gradle\caches\
c:\Users\.AndroidStudio3.2\system\caches\
from this below link:
Unknown attribute android
but it did not work me. Any help in this issue will be appreciated.
My first troubleshooting task would be to try Invalidating Caches and Restart?
On Linux, that is under File -> Invalidate Caches/Restart
Not sure of the exact location on Windows, but it should be in a similar location.
It might help garner more answers if you added more specifics about your issue in your OP.

Android Parse Exception when I build

I am developing an app for my family business and I can't figure out what the source of this build time error is?
Error:com.android.dx.cf.iface.ParseException: class name (BaseHTTPServer$py) does not match path (Lib/BaseHTTPServer$py.class)
I tried cleaning the project, deleting the /app/build folder as I was told elsewhere on the internet, and I tried to reset all my changes. Any help on what maybe causing this error and/or how to fix it would be great.
Edit 1: I am trying to use the Jython Library (http://www.jython.org/)
Edit 2: After retracing my steps it is now fixed.
Thanks and have a great day!
-Fisch
Turns out to be an issue with Jython. Removing it from the libs folder and the reference solved the issue.
This answer might help you. https://stackoverflow.com/a/24663045
It might be related to you using the java 8 JDK as your JDK for compiling.
Try switching it to the java 7 JDK.

Android Facebook-SDK

Hello I am trying to learn a little bit of facebook-sdk for android but no luck.
I will post some screenshots so you easy understand what is my problem.
1st step I am adding the SDk to my project
2nd step I import Classes but i get an error
And when I am going back to android tab I see this
Really need help. I tried Many times to follow the steps from FB Guide in case I forgot something but didnt helped... Thank you in Advanced.(I am new to this hope you will understand)
Your "Jar mismatch" problem comes into picture because of the Facebook SDK itself has android support v4 jar as well as your project also same jar file.
To solve this problem..
Go to your project's properties -> Java Build Path -> Order and Export :
Now remove the Tick-Mark from Android Private Libraries.
make sure that you had already used facebook SDK's private library (tick-marked)
And then after clean your work space..
It will always help me..
Hope this will help you to solve your problem.

Eclipse show no error in files but in folder

I got this error when code my Android app:
I do nothing to this strings.xml file.
Can anyone fix this error?
I do refresh and clean but nothing change.
Thanks.
As per your Comment. Here i post my answer. For this problem. Try below steps -
First just remove the project from your workspace.
And, after just import that project again into your work-space.
Sometimes, it happened for me. I tried to do this way. It works.
Hope this helps you.
Most Often this happens to me too.
Try to remove project from workspace and re-import it.
Hope it will work :)
It seems you have used localization is your app.
There are different possibilities for the error to occur:
1)You have not localized all of the strings.
2)Other problems are persisting and you are not ignoring them.
Solution:
Right Click on your project----> Java Compiler-----> Errors/Warning---> Remove all errors
let me know if this works.
What version of the SDK are you compiling against? According to this list, you need at least Android 2.3 for Vietnamese localisation.

What can I do with R cannot be resolved problem?

If I make a new Android project in Ecplipse and I try, to open one of the samples from android SDK, I have got an error, look like this:
R cannot be resolved
What can I do, to be able, to run these files? I tried to delete import android.R; but nothing changed.
Thanks
First thing you might try is "clean" your project (option in the menu). If it persists:
There should be an error that stops R from being generated. Check the "problems" tab (?) in eclipse to see what that problem is, and solve that. It could be missing libs, or various other stuff.
You possibly got error in building resources.
Possible fixes:
-refresh your project (F5)
-clean you project and refresh
-see "Console" tab, sometimes the problem is shown there
-reload the Android SDK
-restart the Eclipse IDE
Check your XML-Layout files. The problem come here half a time.
If you are sure it is note your layout file, check in your java build path if the google librarys are well set. (Google APIs)
(sorry for my bad english)

Categories

Resources