Xamarin Error - aapt.exe / resources

6

I installed VisualStudio 2015 Community, with Xamarin, up to its beauty.

But I have problems, not only I, I saw in several places, that a lot of people are with the same errors. Unfortunately I could not find the solution yet, I hope someone can help me.

  

Android SDK Directory:

     

C: \ users \ fd \ AppData \ Local \ Android \ android-sdk

     

JDK Directory:

     

C: \ Program Files (x86) \ Java \ jdk1.7.0_71

     

NDK Directory:

     

C: \ Users \ fd \ Documents \ Android \ ndk \ android-ndk-r10e

I have the following errors:

IntheforumsIsaw,theerror"aapt.exe", they were talking about it could be some image file that has a "-" in the file name, this is not because it has no file with "trace "in the project.

Another thing I've read too is that if you update all Android SDK Manager packages, this error would be fixed, I already did that, and the error continues.

The other errors, I have not found anything about them yet.

I was also having problems, in the file Resources.Designer.cs , in that file I was generating more than 2 thousand errors, I commented everything, and the error disappeared ...

Could anyone help me?

    
asked by anonymous 26.04.2016 / 13:10

2 answers

2

Follow the steps below to identify the problem:

1 - In Visual studio : Tools > Options > Projects and solutions > Build and Run.

1.1 - No dropdown : MSBuild project build output verbosity: > Diagnostic.

1.2 - Close the dialog box.

2 - View> Output (Ctrl + W, O).

3 - Run the build or rebuild.

In the output find the line:

  

"C: \ Program Files   (x86) \ MSBuild \ Xamarin \ Android \ Xamarin.Android.Common.targets (1665,3):   error MSB6006: "aapt.exe" exited with code 1. "

What is just above this error is what caused the error.

    
26.04.2016 / 16:01
0

Here, my problem was the same. I created a portable file, and soon I was tested if all the Cross would be working. Android gave this error, in the SDK manager I noticed that I had 2 SDK 24 installed. the SDK Build-TOOLS 24 and SDK Plataform Tools 24. I removed SDK Build and left the Platform. Solved here.

    
03.07.2016 / 05:56