Reputation: 1777
I am using Visual Studio 2015 with Update 3 on Windows 8.1, and I want to debug the application on my Android Phone, I have Oppo A37f mobile.
Earlier, I was using Visual Studio 2015 with Update 3 on Windows 10 and I was able to debug the application with Samsung Galaxy S2 but now I am getting an error in that too, "Unable to install an application or check MainLauncher=true". Is there anything that I have to do?
Is there any other way in that I can check/debug my code?
Upvotes: 4
Views: 2704
Reputation: 1777
Now, I can successfully debug an application in Oppo A37f (Android 5.1) device, I will check in Samsung Galaxy S2 later. I have just disabled the Use Shared Runtime
from Android Options
Upvotes: 5
Reputation: 1020
Two things I would try here:
Force Uninstall application from android emulator/device
adb uninstall <package_name>
from adb located in the Android SDK Platform Tools (Something like C://Program Files(x86)/Android/android-sdk/platform-tools/adb.exe)adb shell pm list packages
to verify the package isn't listed. Make sure you have the appropriate ABI's selected in your Android project
I hope this helps. If you are still having problems, leave me a comment and I'll try and look into it.
Upvotes: 2
Reputation: 452
Just a suggestion may help you, make sure that you have turned on your mobile developer option as well as try to install the driver of the same phone on your windows system and check those drivers gets install properly from control panel => hardware options,
Also try to find device log option and connect your phone from there
These steps fixed my problem you can also try.
Upvotes: 3
Reputation: 3274
Uninstall the app from settings > applications > all. Then retry, it worked for me.
Upvotes: 2