Chandresh Khambhayata
Chandresh Khambhayata

Reputation: 1777

Unable to Debug Application on Android Phone

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

Answers (4)

Chandresh Khambhayata
Chandresh Khambhayata

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

enter image description here

Upvotes: 5

BrewMate
BrewMate

Reputation: 1020

Two things I would try here:

  1. Force Uninstall application from android emulator/device

    • Sometimes switching between deployment machines causes an old version to stay installed and will cause errors on the Android side
    • Need to call 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)
    • Try debugging application again after you have confirmed the application has been installed by using adb shell pm list packages to verify the package isn't listed.
  2. Make sure you have the appropriate ABI's selected in your Android project

    • Navigate to your Android Project Options and try checking all of the available ABI's for your Android build. I say this since I haven't checked the ABI of your device.
    • Try debugging application

I hope this helps. If you are still having problems, leave me a comment and I'll try and look into it.

Upvotes: 2

Sanket
Sanket

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

Fran&#231;ois
Fran&#231;ois

Reputation: 3274

Uninstall the app from settings > applications > all. Then retry, it worked for me.

Upvotes: 2

Related Questions