我刚刚在 Windows 8 上安装了 Xamarin Studio,我创建了一个 C# android 项目,并尝试编译它,但没有运气。
我得到的错误是在 AAPT 工具上,但即使使用 msbuild 的详细输出,我得到的只是输出窗口中的以下内容:
Task "Aapt"
Aapt Task
AssetDirectory:
ManifestFile: C:\Users\Giuseppe\AppData\Local\Temp\i4va1gur.y4b\AndroidManifest.xml
ResourceDirectory: obj\Debug\res\
JavaDesignerOutputDirectory: C:\Users\Giuseppe\AppData\Local\Temp\i4va1gur.y4b
PackageName: AndroidLocationLogger.AndroidLocationLogger
UncompressedFileExtensions:
ExtraPackages:
AdditionalResourceDirectories:
LibraryProjectJarsWildcard: obj\Debug\__library_projects__\*.jar
ExtraArgs:
C:\Users\Giuseppe\AppData\Local\Android\android-sdk\platform-tools\aapt.exe package -f -m -M C:\Users\Giuseppe\AppData\Local\Temp\i4va1gur.y4b\AndroidManifest.xml -J C:\Users\Giuseppe\AppData\Local\Temp\i4va1gur.y4b --custom-package androidlocationlogger.androidlocationlogger -F C:\Users\Giuseppe\AppData\Local\Temp\i4va1gur.y4b\resources.apk.bk -S obj\Debug\res -I C:\Users\Giuseppe\AppData\Local\Android\android-sdk\platforms\android-8\android.jar --auto-add-overlay
C:\Program Files\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(707,2): error MSB6006: "aapt.exe" exited with code -1073741816.
Done executing task "Aapt" -- FAILED.
Done building target "_UpdateAndroidResgen" in project "AndroidLocationLogger.csproj" -- FAILED.
考虑到它给我的数据很少,我真的不知道如何调试它......