Hello,
I am on a Xamarin.Forms project using PCL, and am trying to build Android via command line. I'm using the following command:
msbuild /t:SignAndroidPackage /p:Configuration=Debug Droid/<projectName>.Droid.csproj
This spits out the apk, but for some reason upon installing it, it doesn't launch. I see the following error message:
08-10 00:05:14.967 996 30269 I ActivityManager: Start proc 13062:<projectName>/u0a317 for activity <projectName>/md5cc9a3d4931946f9c011a273b89915757.MainActivity 08-10 00:05:14.971 13062 13062 I art : Late-enabling -Xcheck:jni 08-10 00:05:15.158 13062 13062 W monodroid: Creating public update directory: `/data/user/0/<projectName>/files/.__override__` 08-10 00:05:15.159 13062 13062 W monodroid: Using override path: /data/user/0/<projectName>/files/.__override__ 08-10 00:05:15.162 13062 13062 W monodroid: Trying to load sgen from: /data/user/0/<projectName>/files/.__override__/libmonosgen-2.0.so 08-10 00:05:15.162 13062 13062 W monodroid: Trying to load sgen from: /storage/emulated/0/Android/data/<projectName>/files/.__override__/libmonosgen-2.0.so 08-10 00:05:15.163 13062 13062 W monodroid: Trying to load sgen from: /data/app/<projectName>-1/lib/arm64/libmonosgen-2.0.so 08-10 00:05:15.163 13062 13062 W monodroid: Trying to load sgen from: /data/user/0/<projectName>/files/.__override__/links/libmonosgen-2.0.so 08-10 00:05:15.240 13062 13062 F monodroid: No assemblies found in '/data/user/0/<projectName>/files/.__override__' or '/storage/emulated/0/Android/data/<projectName>/files/.__override__'. Assuming this is part of Fast Deployment. Exiting... 08-10 00:05:15.274 996 2487 I ActivityManager: Process <projectName> (pid 13062) has died 08-10 00:05:15.274 996 2487 D ActivityManager: cleanUpApplicationRecord -- 13062 08-10 00:05:15.274 640 640 I Zygote : Process 13062 exited cleanly (65) 08-10 00:05:15.295 996 2487 I ActivityManager: Start proc 13078:<projectName>/u0a317 for activity <projectName>/md5cc9a3d4931946f9c011a273b89915757.MainActivity 08-10 00:05:15.304 13078 13078 I art : Late-enabling -Xcheck:jni 08-10 00:05:15.432 13078 13078 W monodroid: Creating public update directory: `/data/user/0/<projectName>/files/.__override__` 08-10 00:05:15.432 13078 13078 W monodroid: Using override path: /data/user/0/<projectName>/files/.__override__ 08-10 00:05:15.433 13078 13078 W monodroid: Trying to load sgen from: /data/user/0/<projectName>/files/.__override__/libmonosgen-2.0.so 08-10 00:05:15.433 13078 13078 W monodroid: Trying to load sgen from: /storage/emulated/0/Android/data/<projectName>/files/.__override__/libmonosgen-2.0.so 08-10 00:05:15.434 13078 13078 W monodroid: Trying to load sgen from: /data/app/<projectName>-1/lib/arm64/libmonosgen-2.0.so 08-10 00:05:15.434 13078 13078 W monodroid: Trying to load sgen from: /data/user/0/<projectName>/files/.__override__/links/libmonosgen-2.0.so 08-10 00:05:15.517 13078 13078 F monodroid: No assemblies found in '/data/user/0/<projectName>/files/.__override__' or '/storage/emulated/0/Android/data/<projectName>/files/.__override__'. Assuming this is part of Fast Deployment. Exiting... 08-10 00:05:15.558 640 640 I Zygote : Process 13078 exited cleanly (65) 08-10 00:05:15.558 996 2445 I ActivityManager: Process <projectName> (pid 13078) has died 08-10 00:05:15.558 996 2445 D ActivityManager: cleanUpApplicationRecord -- 13078
Strangely enough, if I build the Android project via Visual Studios, it launches fine.
Any ideas?