Mono for Android无法重新安装应用程序组装

时间:2012-08-21 17:41:36

标签: android xamarin.android

我第一次成功安装了该应用程序但后来删除并尝试将应用程序重新安装(测试和调试)到我的nexus 4.0安卓手机。我现在得到一个部署错误。在安装程序集......期间IT失败:

警告信息1:

  

设备上有一个共享运行时,其版本不可用   决心。不会部署新的运行时。如果运行时需要   如需更换,请手动将其从设备中取出。

警告信息2:

  

设备上有一个平台支持运行时,其版本不能   确定。不会部署新的平台支持运行时。如果   平台支持运行时需要更换,请手动   将其从设备中移除。

错误讯息1:

An error occurred installing the package assemblies.

Error datails: Mono.AndroidTools.AdbException: No such file or directory--->

Output Window box: _GenerateJavaStubs: ResolvedAssemblies: C:\Users\King\Mono Andriod\My Territory\My Territory\bin\Debug\MyTerritory.dll C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v2.3\Mono.Android.dll C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\mscorlib.dll C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Core.dll C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.dll C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Mono.Security.dll C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Xml.dll C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Mono.Data.Sqlite.dll C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Data.dll C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Mono.Data.Tds.dll C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Transactions.dll C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Xml.Linq.dll ResolvedUserAssemblies: C:\Users\King\Mono Andriod\My Territory\My Territory\bin\Debug\MyTerritory.dll _AddStaticResources: Resource obj\Debug\android\assets\machine.config is unchanged. Skipping. Resource obj\Debug\android\src\mono\MonoRuntimeProvider.java is unchanged. Skipping. Resource obj\Debug\android\src\mono\android\Seppuku.java is unchanged. Skipping. _GeneratePackageManagerJava: Skipping target "_GeneratePackageManagerJava" because all output files are up-to-date with respect to the input files. _CreateBaseApk: Skipping target "_CreateBaseApk" because all output files are up-to-date with respect to the input files. _CompileJava: Skipping target "_CompileJava" because all output files are up-to-date with respect to the input files. _CompileDex: Skipping target "_CompileDex" because all output files are up-to-date with respect to the input files. _BuildApkFastDev: Skipping target "_BuildApkFastDev" because all output files are up-to-date with respect to the input files. _Mandroid: Skipping target "_Mandroid" because all output files are up-to-date with respect to the input files. _Sign: Skipping target "_Sign" because all output files are up-to-date with respect to the input files. Done Building Project "C:\Users\King\Mono Andriod\My Territory\My Territory\MyTerritory.csproj" (SignAndroidPackage target(s)).

Build succeeded. 0 Warning(s) 0 Error(s)

Time Elapsed 00:00:00.69

Waiting for device.. Removing old runtime: Mono.Android.DebugRuntime [2147483647].. Removing old runtime: Mono.Android.Platform.ApiLevel_10 [2147483647].. Removing any previous version.. Copying application to device... Getting installation path... Installing assemblies... ========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========

1 个答案:

答案 0 :(得分:0)

我遇到了同样的问题。我能够通过以下方式获得部署的应用程序:

  • 转到项目属性
  • 更改"链接"到" Sdk和用户组件"
  • 取消选中"使用共享运行时"
  • 取消选中"使用快速部署(仅限调试模式)"

我不确定为什么它不起作用。我有运行Jelly Bean(Android 4.1)的Galaxy Nexus。