Cant debug on Android VM from VS2013

Hello,

I cant debug android app anymore (Xamarin forms) since latest Xamarin VS update.
The app compile, is deployed on the device and run corrctly, but the debbuger never attach to the device, there is no error in the output window of VS.
FYI it does not work an any emulator I have, including Xamarin player, and also on a real device via USB driver

In the logcat I have found that, dont know if it is relevant :

03-30 23:14:43.590: E/memtrack(1696): Couldn't load memtrack module (No such file or directory)
03-30 23:14:43.590: E/android.os.Debug(1696): failed to load memtrack module: -2

And

03-30 23:14:46.970: E/Netd(923): exec() res=0, status=256 for /system/bin/iptables -t mangle -A st_mangle_EXEMPT -d 10.0.2.2/32 -j MARK --set-mark 1
03-30 23:14:46.980: E/logwrapper(1814): executing /system/bin/ip failed: No such file or directory
03-30 23:14:46.990: E/ConnectivityService(1261): Exception trying to add a route: java.lang.IllegalStateException: command '30 interface fwmark exempt add 10.0.2.2/32' failed with '400 30 Failed to add exemption rule (File exists)'

Do you have any hint ?

Thx

Posts

  • AxelCharpentierAxelCharpentier FRMember ✭✭

    Additional info : this happen only on my project, the debugger has no problems with a new XForm project or with the XLabs sample. (Debugger works fine with iOS)

    On Xamarin Studio, the "Start debugging item" menu item is disabled regardeless of the build configuration

    Here is my configuration : VS2013 update 4, Xamarin 3.9.525, jdk 1.8_40 on Windows 8.1

    The Android project is set to :

    • Compile version : API 21.
    • Minimum android target : API 19
    • Target android version API 21

    I can't figure out what is wrong with my Android project.

    Any help would be very appreciated.

    Thx

  • AxelCharpentierAxelCharpentier FRMember ✭✭

    Found the issue, my android csproj has been created a while ago (Xamarin VS 3.8), and on the new version there are new parameters in the android csproj.
    Using a comparaison tool a found some differece and merging these fix the problem :
    1 - On the first propertyGroup I was missing these
    8.0.30703
    2.0
    2- On Next propertyGroup this was missing
    true

Sign In or Register to comment.