I have a Xamarin Android app already installed on a physical device.
If I attempt to launch the new MAUI version of that same app, the deployment fails with the following message:
Detecting existing process
> am start -a "android.intent.action.MAIN" -c "android.intent.category.LAUNCHER" -n "com.mycompany.myapp/crc64ce82217b4e30774f.MainActivity"
> Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.mycompany.myapp/crc64ce82217b4e30774f.MainActivity }
Exception occurred while executing 'start':
java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.mycompany.myapp/crc64ce82217b4e30774f.MainActivity } from null (pid=9815, uid=2000) not exported from uid 10860
How can I successfully install and debug from Visual Studio, in order to test the upgrade process from the old version of the app? This is also important in order to ensure it is possible to upgrade and preserve the data in the old version.
UPDATE:
If I create an APK from a release version and attempt to side load that on the mobile device where the previous version of the app is installed, I get this error message after being prompted if I want to upgrade:
Surely there HAS to be a way to upgrade from the older Xamarin version of app?
4
Android has multiple user features. You can see it in the Status Bar. Switching to the new user and deleting the conflicting application may be a solution. Sometimes apps you can’t see appear installed on the second user. I had a similar situation before I was able to solve it this way. Just a solution suggestion. You should alos make sure that you sign with the same signature and upgrade your version or build nuumber.
1