eclipse cause Lint error when save any layout xml files - android

I think I'd tried everything to fix it but failed.
I've downloaded eclipse from here: http://www.eclipse.org/downloads/packages/eclipse-android-developers-includes-incubating-components/neonr
It's the latest eclipse package made to work with android app developing.
AND
I've downloaded and installed Android Sdk from:
https://dl.google.com/android/installer_r24.4.1-windows.exe
https://dl.google.com/android/android-sdk_r24.4.1-macosx.zip
That's right, both windows and mac versions.
My Android sdk looks like this.
And I created a new android application project, and I just open a pre-made layout xml file and as soon as I save a change I got this.
'Running Android Lint' has encountered a problem.
Failed
Detail:
Failed
java.lang.UnsupportedOperationException
So, here is the big question, how to fix android lint? Or at least point me the right direction, I've tried this on a PC and on a Mac, same problem.
Update: I know android studio and I've used it alot. Let's just say I have my reasons to pick up eclipse and make it work again.

It can be solved by turn off lint error check.
Click Window in Eclipse, select Preferences. Select Android -> Lint Error Checking on the left, and uncheck following checkboxes:
1.Run full error check when exporting app and abort if errors are found 2.When saving file check for error
For ref please check the screenshot I have attached:

Related

Android Studio failed to launch

I am new to development am building my first app. As I am getting closer to completion of the project I will need Android Studio... I have installed but it simply fails to launch. I have searched my options on various sources.
Fixes I have already tried:
Added disable.android.first.run=true in the idea file
Did a clean installation
Installed the latest version of Java
Did all of the above again as Admin just in case
Set the JAVA_HOME and JAVA_JRE and cmd %echo% came back with the correct path
There is one thing I noticed. When deleting the Google folder in my Roaming the program runs again but once I pick "Do not import settings" then the program creates this folder but pops the error.
I would post the error message but the error window comes blank.
Thank you in advance for any and all help!

Android Studio 3.0.1 - Unable to save settings: Failed to save settings. Please restart Android Studio

I know this a duplicated question but i didn't find any answer validated for the problem .
I made the all the solutions in this question: Android Studio 3.0 - Unable to save settings: Failed to save settings. Please restart Android Studio
but what if my project wasn't a local project and is a remote project on Git .
every time i pull the master from git , this problem is showed up .
the problem was also in Version 3.0 even after updating the Studio
my version of Android Studio is 3.0.1
This wasn't easy as the error doesn't look like others in the questions i mentioned above .
First
if your message error has word plugins in it you should see these answers Here
and these answers Here helps too .
In My Case
the error is found if i tried to Revert Font File in the project we worked on as the message appears every time i launched Android Studio. I work remotely with others on GIT. So this is a a change in the master i pulled and every change i make in my branch wouldn't save.
I don't know if this rule is important if you work with git but i finally didn't make Revert to the file so the error message didn't show again and in the next launch of Android Studio the Revert message didn't show
Recently I encounter the same issue, After updating the android studio I faced this issue and I tried all the possible solutions found on the internet.
My project has multiple modules and one of the modules is present inside a custom folder. (The same project has worked without any issue in the windows environment).
For example, In windows, the path for the module is "/internal/module name".
After importing the same project in mac the path should be changed to "./internal/module name".
After doing this the studio errors,
- Unable to save the setting
- Unable to find a matching configuration of the project.
All are resolved and I am able to build my project successfully.
Delete .idea and restart Android Studio.

Android studio won't start (Unable to create JVM error)

Android studio was working fine till today morning but when I opened studio today it shows can't start. Shows error:
Searched the internet and SO, but couldn't find the answer. any suggestion will be appreciated.
i have set the JAVA_HOME path correctly. i have used studio and developed projects also using it.
Try this also
Delete this file : (Tested on Windows)
%USERPROFILE%\.AndroidStudiox.x\studio64.exe.vmoptions
(Keeping a backup of this file is recommended)
replace x.x with your Android studio version
The file is used to manually set java virtual machine parameters for android studio.
Faulty configuration might cause the software not to start.
You have to try to rename .AndroidStudio2.x.
please refer to topic - JDK error when trying to start Android Studio
Very simple trick worked for me.Though JAVA_HOME was set, it was giving an error.
To make it correct, close the error message window first, then go to environment variable settings of the system, say Edit JAVA_HOME, do not edit just say save/ok. and restart the Android Studio.
Tada... its happily working ever after :) !

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.

Eclipse crashes when I invoke Android Layout Editor

I'm new to Android & Eclipse. I've downloaded Eclipse and the Android ADT and created an ultra-simple Hello World app (has only auto-generated .java and .xml files).
Eclipse CRASHES (closes after a very brief pause) when I do the following:
In Package Explorer, select AppName/res/layout/main.xml
Press , or double-click, or 'Open With' then 'Android Layout Editor'
(The app runs OK in the Android emulator)
My configuration is:
Android Development Tools 0.9.5.v200911191123-20404 com.android.ide.eclipse.adt.feature.group
Eclipse IDE for Java Developers 1.2.2.20100216-1730 epp.package.java
Windows XP
Can someone tell me what I'm doing wrong or what's wrong with my configuration?
Any suggestions on what to check? For any non-trivial app development I need to
be able to use the Layout Editor.
More ... I can select main.xml and Right-Click and 'Open With' any of: XML Editor,
XML Schema Editor, Text Editor -- with no problem. The problem is limited to Android Layout Editor.
THANKS!
I found the problem.
I discovered the .log files (under \Android SDK\eclipse-java-galileo ...\eclipse )
These files are apparently created by Eclipse when a fatal exception occurs. Upon examining the latest file I saw
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d2521e1, pid=9156, tid=13952
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_02-b09 mixed mode)
# Problematic frame:
# C [fontmanager.dll+0x121e1]
and when I looked further, found the folder where fontmanager.dll resides.
Deducing that 'fontmanager.dll' was part of the Java runtime, I saw that I'd been using jre1.5.0_02, and, upon checking the Sun site, discovered that it's an outdated file. So I downloaded (from Sun site) and installed the latest version of the Java runtime.
That fixed it! The Android Layout Editor runs without problems.
THANKS to Nathan for his efforts. As it turned out, his suggestion didn't solve this particular problem, but the info he provided will no doubt be useful.
You have to upgrade your jdk version to the latest version. I found most of the cases online is that the jdk5 made the eclipse crashed and they worked out by upgrade to jdk6. I used jdk6 but the problem existed! At last I download the latest version(jdk7) and the eclipse not crashes any more!
DONT do anything in eclipse while it says "building project" at the bottom right it does this when you load eclipse, and when you run, or add new files.
If you still have the problem, then I cant help you
In case the above answers don't help, this was my resolve:
I had a similar problem where every time I would view the layout editor (even though I was able to see the XML file) Eclipse would crash. I reinstalled Java, updated Java, and I even reinstalled Eclipse with no avail. It turns out that it was a corrupt video driver, nvd3dum.dll. The filename is in the error list.

Categories

Resources