I cannot deploy my app in my Android phone though the live player works fine

sarathi67sarathi67 Member

Here is the deploy output--

1>------ Build started: Project: Calculator.Droid, Configuration: Debug Any CPU ------
1> Calculator.Droid -> C:\Users\sarat\source\repos\Calculator\Calculator\Calculator.Droid\bin\Debug\Calculator.Droid.dll
1> No way to resolve conflict between "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" and "mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e". Choosing "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" arbitrarily.
2>Starting deploy LENOVO A6020a40 ...
2>Deploying LENOVO A6020a40 ...
2>Build started.
2>Project "Calculator.Droid.csproj" (Install target(s)):
2>C:\Program Files\Java\jdk1.8.0_161\bin\keytool.exe -list -alias androiddebugkey -storepass android -keypass android -keystore "C:\Users\sarat\AppData\Local\Xamarin\Mono for Android\debug.keystore"
2>C:\Program Files (x86)\Android\android-sdk\build-tools\25.0.3\zipalign.exe 4 "C:\Users\sarat\source\repos\Calculator\Calculator\Calculator.Droid\obj\Debug\android\bin\com.xamarin.Calculator.Droid.apk" "bin\Debug\com.xamarin.Calculator.Droid-Signed.apk"
2>C:\Program Files (x86)\Android\android-sdk\build-tools\25.0.3\apksigner.BAT sign --ks "C:\Users\sarat\AppData\Local\Xamarin\Mono for Android\debug.keystore" --ks-pass pass:android --ks-key-alias androiddebugkey --key-pass pass:android --min-sdk-version 22 --max-sdk-version 27 bin\Debug\com.xamarin.Calculator.Droid-Signed.apk
2>"apksigner.BAT" exited with code 1.
2>Done building project "Calculator.Droid.csproj" -- FAILED.
2>Build FAILED.
2>Build started.
2>Project "Calculator.Droid.csproj" (Install target(s)):
2>C:\Program Files\Java\jdk1.8.0_161\bin\keytool.exe -list -alias androiddebugkey -storepass android -keypass android -keystore "C:\Users\sarat\AppData\Local\Xamarin\Mono for Android\debug.keystore"
2>
2>C:\Program Files (x86)\Android\android-sdk\build-tools\25.0.3\zipalign.exe 4 "C:\Users\sarat\source\repos\Calculator\Calculator\Calculator.Droid\obj\Debug\android\bin\com.xamarin.Calculator.Droid.apk" "bin\Debug\com.xamarin.Calculator.Droid-Signed.apk"
2>C:\Program Files (x86)\Android\android-sdk\build-tools\25.0.3\apksigner.BAT sign --ks "C:\Users\sarat\AppData\Local\Xamarin\Mono for Android\debug.keystore" --ks-pass pass:android --ks-key-alias androiddebugkey --key-pass pass:android --min-sdk-version 22 --max-sdk-version 27 bin\Debug\com.xamarin.Calculator.Droid-Signed.apk
2>"apksigner.BAT" exited with code 1.
2>Done building project "Calculator.Droid.csproj" -- FAILED.
2>Build FAILED.
2>
2>Deploy failed on LENOVO A6020a40
========== Build: 1 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========

I am trying this for many days but always failed. I have updated NuGet packages. And my phone uses Lollipop 5.1

Thanks in advance :smile:

Answers

Sign In or Register to comment.