0
votes

I am Using Xamarin.Forms, But I updated the Android SD Manager from eclipse then I get the following Error:

Xamarin.forms Build Error "aapt.exe" exited with code -1073741819

Error occurred on the following file: \MSBuild\Xamarin\Android\Xamarin.Android.Common.targets

<!-- Run aapt to generate R.java -->
    <Aapt Condition="'$(_AndroidResourceDesignerFile)' != ''"
        ImportsDirectory="$(_LibraryProjectImportsDirectoryName)"
        OutputImportDirectory="$(IntermediateOutputPath)__library_projects__\"
        UseShortFileNames="$(UseShortFileNames)"
        JavaPlatformJarPath="$(JavaPlatformJarPath)"
        ManifestFile="$(ResgenTemporaryDirectory)\AndroidManifest.xml"
        PackageName="$(_AndroidPackage)"
        ApplicationName="$(_AndroidPackage)"
        ResourceDirectory="$(MonoAndroidResDirIntermediate)"
        JavaDesignerOutputDirectory="$(ResgenTemporaryDirectory)"
        ResourceOutputFile="$(ResgenTemporaryDirectory)\resources.apk"
        ExtraPackages="$(AaptExtraPackages)"
        AdditionalResourceDirectories="@(LibraryResourceDirectories)"
        LibraryProjectJars="@(ExtractedJarImports)"
        ExtraArgs="$(AndroidResgenExtraArgs)"
        ToolPath="$(AaptToolPath)"
        ToolExe="$(AaptToolExe)"
        AdditionalAndroidResourcePaths="@(_AdditonalAndroidResourceCachePaths)"
        ApiLevel="$(_AndroidTargetSdkVersion)"
        AndroidUseLatestPlatformSdk="$(AndroidUseLatestPlatformSdk)"
        ResourceNameCaseMap="$(_AndroidResourceNameCaseMap)"
        ExplicitCrunch="$(AndroidExplicitCrunch)"
    />
  <Aapt
    ImportsDirectory="$(_LibraryProjectImportsDirectoryName)"
    OutputImportDirectory="$(IntermediateOutputPath)__library_projects__\"
    UseShortFileNames="$(UseShortFileNames)"
    JavaPlatformJarPath="$(JavaPlatformJarPath)"
    ManifestFile="$(IntermediateOutputPath)android\AndroidManifest.xml"
    ResourceDirectory="$(MonoAndroidResDirIntermediate)"
    JavaDesignerOutputDirectory="$(AaptTemporaryDirectory)"
    ResourceOutputFile="$(_PackagedResources)"
    ExtraPackages="$(AaptExtraPackages)"
    AdditionalResourceDirectories="@(LibraryResourceDirectories)"
    ExtraArgs="$(AndroidResgenExtraArgs)"
    PackageName="$(_AndroidPackage)"
    ApplicationName="$(_AndroidPackage)"
    UncompressedFileExtensions="$(AndroidStoreUncompressedFileExtensions)"
    AssetDirectory="$(MonoAndroidAssetsDirIntermediate)"
    ToolPath="$(AaptToolPath)"
    ToolExe="$(AaptToolExe)"
    AdditionalAndroidResourcePaths="@(_AdditonalAndroidResourceCachePaths)"
    ApiLevel="$(_AndroidTargetSdkVersion)"
    AndroidUseLatestPlatformSdk="$(AndroidUseLatestPlatformSdk)"
    ResourceNameCaseMap="$(_AndroidResourceNameCaseMap)"
    SupportedAbis="$(_BuildTargetAbis)"
    CreatePackagePerAbi="$(AndroidCreatePackagePerAbi)"
    ExplicitCrunch="$(AndroidExplicitCrunch)"
     />
1
Are you having dashes - in your image filenames?Akash Amin
actually no I have not :(Mohamad Mahmoud

1 Answers

1
votes

Verify that you've got the right target SDK framework levels installed in the SDK Manager. I've seen similar errors during build when some of them are missing.