Unparsed Aapt Error

I tried to create an Android application after adding the image that I planned to use to the drawables folder. The project worked fine, but after starting the project, an Unparsed Aapt Error error message appeared. The error is displayed in the src folder. I tried to clean my project, but the R.java class just disappears.

Any suggestions on how to fix this problem ????

+7
source share
7 answers

1) clean project

2) close the project

3) try again, if it still fails: repeat 1 and 2, and then:

4) exit Eclipse and log in again.

5) set the target in the manual launch configuration and try

An error was submitted for this error - http://code.google.com/p/android/issues/detail?id=14607

Before solving it, we need to bear the problem.

+13
source

I found another “fix” for this problem in the Google Android Google development team , which explains that sometimes the error was resolved, but the eclipse was simply not aware of it.

Apparently, in this case, you can also just delete the error by right-clicking it.

+2
source

Right-click on the project> properties> android> for the purpose of building the project: select android 5.0 with an API level of 21 or select the same version of Android with an api level that is installed in android- support-v7-appcompat.

The api level and Android version should be the same in android-support-v7-appcompat, as well as in your project.

+1
source

Reason: Android SDK or Platform SDK does not match the Eclipse plugin.

Decision:

  • Open Android SDK Manager and update: Android SDK and Android Platform SDK
  • Open the Eclipse plugin and update
0
source

I tried all these steps and nothing fixed the appt 138 error that I was getting. As it happens, I used the TFS plugin at work, and at some point the encoding of one of the xml files was changed from 0 on the server to ASCII in the local copy. I had to roll back to the last change installed before the problem, and then be sure to overwrite the damaged file with the version from the server with encoding 0 to fix the problem.

0
source

In most cases, changing the image file identifier from PNG to png will fix Android "Unparsed aapt error (s)"

0
source

In fact, the problem arises when we paste the image into a folder with the ability to transfer. The image name must contain only the letters [a-z0-9_.]. I mean, filenames anywhere "res" should only contain lowercase letters, numbers, or underscores. The link https://teamtreehouse.com/forum/beginners-android-app-help explains this very well.

0
source

All Articles