2016-11-14 13 views
0

私は何度も何度も何度も問題を抱えています。 Xamarin Studioでプロジェクトを作成してビルドして実行すると、すべて正常に動作します。Xamarin Studioで構築されたXamarin StudioがVS2015でビルドされていますが、デプロイメントに失敗します

私はVS2015で同じプロジェクトを開いて、ビルドすることはできますが、エラーは表示されません。しかし、デバイスまたはエミュレータにそれを実行(または展開)しようとすると、失敗します。

これは、出力ウィンドウに2015年のショー

1>No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (2046-09-30) or after any future revocation date. 
1>C:\Program Files (x86)\Android\android-sdk\build-tools\23.0.0\zipalign.exe 4 "C:\Users\me\Desktop\work\xamarin\LocationTrackingService\LocationTrackingService\bin\Debug\com.user.learning.locationtrackingservice-Signed-Unaligned.apk" "bin\Debug\\com.user.learning.locationtrackingservice-Signed.apk" 
1>C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe -s ENU7N16723000122 devices 
1>C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe -s ENU7N16723000122 shell getprop ro.build.version.sdk 
1>C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe -s ENU7N16723000122 shell getprop ro.product.cpu.abilist64 
1>C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe -s ENU7N16723000122 shell pm dump com.user.learning.locationtrackingservice 
1>The "InstallPackageAssemblies" task failed unexpectedly. 
1>System.AggregateException: One or more errors occurred. ---> Xamarin.AndroidTools.AndroidDeploymentException: InternalError ---> Mono.AndroidTools.InstallFailedException: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.usere.learning.locationtrackingservice signatures do not match the previously installed version; ignoring!] 
1> at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output, String packageName) 
1> at Mono.AndroidTools.AndroidDevice.<>c__DisplayClass91_0.<InstallPackage>b__0(Task`1 t) 
1> at System.Threading.Tasks.ContinuationTaskFromResultTask`1.InnerInvoke() 
1> at System.Threading.Tasks.Task.Execute() 
1> --- End of inner exception stack trace --- 
1> at Xamarin.AndroidTools.AndroidDeploySession.<RunLoggedAsync>d__99.MoveNext() 
1>--- End of stack trace from previous location where exception was thrown --- 
1> at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
1> at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
1> at Xamarin.AndroidTools.AndroidDeploySession.<StartAsync>d__98.MoveNext() 
1> --- End of inner exception stack trace --- 
1> at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) 
1> at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) 
1> at System.Threading.Tasks.Task.Wait() 
1> at Xamarin.Android.Tasks.InstallPackageAssemblies.Execute() 
1> at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() 
1> at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() 
1>---> (Inner Exception #0) Xamarin.AndroidTools.AndroidDeploymentException: InternalError ---> Mono.AndroidTools.InstallFailedException: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.user.learning.locationtrackingservice signatures do not match the previously installed version; ignoring!] 
1> at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output, String packageName) 
1> at Mono.AndroidTools.AndroidDevice.<>c__DisplayClass91_0.<InstallPackage>b__0(Task`1 t) 
1> at System.Threading.Tasks.ContinuationTaskFromResultTask`1.InnerInvoke() 
1> at System.Threading.Tasks.Task.Execute() 
1> --- End of inner exception stack trace --- 
1> at Xamarin.AndroidTools.AndroidDeploySession.<RunLoggedAsync>d__99.MoveNext() 
1>--- End of stack trace from previous location where exception was thrown --- 
1> at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
1> at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
1> at Xamarin.AndroidTools.AndroidDeploySession.<StartAsync>d__98.MoveNext()<--- 
1> 
1>Build FAILED. 
1> 
========== Build: 0 succeeded, 0 failed, 1 up-to-date, 0 skipped ========== 
========== Deploy: 0 succeeded, 1 failed, 0 skipped ========== 

情報Visual Studioのです私はこれが起こって、どのように問題を解決するにしている理由を知りません。私の理解では、Xamarin Studioで作成したプロジェクトをVisual Studioで開くことができ、その逆も可能です。

答えて

0

問題の原因がわかったと思います。実行中のadbデバイスには私のデバイスとエミュレータの数は表示されていませんでしたが、どれも奇妙なものでした。すべてのエミュレータを削除し、今は私のデバイスは

次を実行していると表示されている

adb kill-server 
adb start-server 
adb devices 

を発行

は、私はこれは私のアプリケーションの以前のバージョンがあったことを確認しました

adb uninstall "com.usere.learning.locationtrackingservice" 

を発行しました確実にアンインストールされ、何らかの形でアンインストールされたファイルがデバイスに残りませんでした。

この後、私は展開して実行することができました。

関連する問題