Bug 12392 - Error MSB4018: Unerwarteter Fehler bei der Aapt-Aufgabe
Summary: Error MSB4018: Unerwarteter Fehler bei der Aapt-Aufgabe
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Android Add-in ()
Version: 4.0.6
Hardware: PC Windows
: --- normal
Target Milestone: 4.0.9 (from master)
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2013-05-24 18:00 UTC by Andreas Reisenhofer
Modified: 2013-06-24 16:18 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Andreas Reisenhofer 2013-05-24 18:00:01 UTC
After Eclipse for Mobile Developers
Version: Juno Service Release 2
Build id: 20130225-0426

has made an update to 


    Android DDMS	22.0.0.v201305140200--675183
    Android Development Tools	22.0.0.v201305140200--675183
    Android Hierarchy Viewer	22.0.0.v201305140200--675183
    Android Native Development Tools	22.0.0.v201305140200--675183
    Android Traceview	22.0.0.v201305140200--675183
    Tracer for OpenGL ES	22.0.0.v201305140200--675183

during startup

Xamarin cannot compile any projects anymore :-(

Error message:

    C:\Program Files\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2,2): Error MSB4018: Unerwarteter Fehler bei der Aapt-Aufgabe.

System.InvalidOperationException: Die Sequenz enthält keine Elemente.

   bei System.Linq.Enumerable.First[TSource](IEnumerable`1 source)

   bei Xamarin.Android.Tasks.BuildToolsUtils.GetBuildToolsPath(String androidSdkDirectory)

   bei Xamarin.Android.Tasks.Aapt.GenerateFullPathToTool()

   bei Microsoft.Build.Utilities.ToolTask.ComputePathToTool()

   bei Microsoft.Build.Utilities.ToolTask.Execute()

   bei Xamarin.Android.Tasks.Aapt.Execute()

   bei Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()

   bei Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext() (MSB4018) (AndroidStandardControls)
   

=== Xamarin Studio ===

Version 4.0.8 (build 2)

Installation UUID: 7759b588-d417-4215-bc57-7d42041ac5ab

Runtime:

	Microsoft .NET 4.0.30319.18034

	GTK 2.24.13

	GTK# (2.12.0.0)

=== Xamarin.Android ===

Version: 4.6.6 (Starter Edition)

Android SDK: C:\Program Files\Android\android-sdk

	Supported Android versions:

		2.1   (API level 7)

		2.2   (API level 8)

		2.3   (API level 10)

		3.1   (API level 12)

		4.0   (API level 14)

		4.0.3 (API level 15)

		4.2   (API level 17)

Java SDK: C:\Program Files\Java\jdk1.6.0_39

=== Build Information ===

Release ID: 400080002

0a09117dec1aed78c735ac46f7a50ae7d12f7a7a

Build date: 2013-05-16 17:54:42Z

Xamarin addins: 78d0437c3f92ae13042f81e5fd9487e2c28d5fbc

=== Operating System ===

Windows 6.1.7601.65536
Comment 1 Jonathan Pryor 2013-05-25 00:02:15 UTC
You need to install the Android SDK Build tools package, version 17.

http://forums.xamarin.com/discussion/comment/14419/#Comment_14419
Comment 2 Andreas Reisenhofer 2013-05-25 06:21:09 UTC
Thanks, it helped!
Comment 3 PJ 2013-06-24 16:18:49 UTC
This bug was marked as fixed for Xamarin Studio 4.0.9, which is currently in the beta channel. Try it out!