2017-06-24 8 views
2

この時点でXamarinには非常に基本的なアプリケーションが組み込まれていました。しかし、私のアプリケーションはビルドとデプロイは成功しますが、アプリケーション自体は起動せず、エミュレータ/リアルデバイスでは表示されません。XamarinのAndroidプロジェクトビルドは正常にビルド/デプロイされますが、アプリケーションは実行されません

ビルド出力の短縮版がここに表示されている:

1>------ Build started: Project: BasicApp.Android, Configuration: Debug Any CPU ------ 
1>C:\Users\Salvatore Lucania\documents\visual studio 2017\Projects\BasicApp\BasicApp\BasicApp.Android\Fragments\Menu\MenuFragment.cs(47,13,47,34): warning CS4014: Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call. 
1> BasicApp.Android -> C:\Users\Salvatore Lucania\documents\visual studio 2017\Projects\BasicApp\BasicApp\BasicApp.Android\bin\Debug\BasicApp.Android.dll 
1> Processing: obj\Debug\res\layout\activity_main.xml 
1> Alot of other files processed here... 
2>Starting deploy Samsung SM-G930F ... 
2>Deploying Samsung SM-G930F ... 
2>Build started. 
2>C:\Program Files\Java\jdk1.8.0_112\\bin\keytool.exe -list -alias androiddebugkey -storepass android -keypass android -keystore "C:\Users\Salvatore Lucania\AppData\Local\Xamarin\Mono for Android\debug.keystore" 
2>C:\Program Files\Java\jdk1.8.0_112\\bin\jarsigner.exe -keystore "C:\Users\Salvatore Lucania\AppData\Local\Xamarin\Mono for Android\debug.keystore" -storepass android -keypass android -digestalg SHA1 -sigalg md5withRSA -signedjar bin\Debug\\com.basicapp.droid-Signed-Unaligned.apk "C:\Users\Salvatore Lucania\documents\visual studio 2017\Projects\BasicApp\BasicApp\BasicApp.Android\obj\Debug\android\bin\com.basicapp.droid.apk" androiddebugkey 
2>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 (2047-05-20) or after any future revocation date. 
2>C:\Program Files (x86)\Android\android-sdk\build-tools\26.0.0\zipalign.exe 4 "C:\Users\Salvatore Lucania\documents\visual studio 2017\Projects\BasicApp\BasicApp\BasicApp.Android\bin\Debug\com.basicapp.droid-Signed-Unaligned.apk" "bin\Debug\\com.basicapp.droid-Signed.apk" 
2>Build succeeded. 
2>Deploy successfully on Samsung SM-G930F 
========== Build: 1 succeeded, 0 failed, 1 up-to-date, 0 skipped ========== 
========== Deploy: 1 succeeded, 0 failed, 0 skipped ========== 

私は私のTargetFrameworkVersionが高くあるべきである知っているが、私は高いそれを設定しても、それは実行されません。私が見逃す可能性のある明白なことはありますか?私はMVVMCrossを使用しています。私がダウンロードしたもう一つのプロジェクト:https://github.com/MvvmCross/MvvmCross-Samples/tree/master/XPlatformMenusビルドして私の電話で成功しました。

編集:このメソッドを使用してBasicApp.Androidの名前をBasicApp.Droidに変更しました:https://stackoverflow.com/a/35012594/4810478しかし、悲しいことに、それは問題を解決しません。

+0

正常にデプロイできますか?携帯電話のアプリ一覧にアプリが表示されない場合、アプリは展開されませんでした。 – Darius

+0

ソリューション全体をクリーンにしてからもう一度ビルド/デプロイしてください。 – Darius

+0

Dariusさん、こんにちは。ビルド出力は、それが正常に展開されたことを示します。私はあなたに同意しますが、それはアプリケーションリストにも表示されないことは非常に奇妙です。gitからダウンロードした他のプロジェクトは、同じデバイスにデプロイされ、正常に実行されます。 –

答えて

0

BasicApp.Droid

BasicApp.Androidから、プロジェクトの名前を変更してみてください私はかつての接尾辞に名前の私のAndroidのプロジェクトに問題がありました。

また、ビルド出力にCoreプロジェクト(MvvmCross用)が表示されません。 Androidプロジェクトがそれを参照していることを確認してください。

その後、溶液全体をきれいにして、再度ビルドします。

関連する問題