XA0134: The application does not have the 'android:debuggable' attribute set in the AndroidManifest.xml.

Viewed 1452

I'm getting this deployment error in my xamarin visual studio PROJECT, can anyone help me? I'm getting this even if I have debuggable poperty in manifest or not.

1 Answers

It's generally safer to set this using the Attribute via the Android file AssemblyInfo.cs rather than in the AndroidManifest.xml file. This way you can determine if you're actually debugging via #if DEBUG versus publishing your app with a RELEASE build.

Attribute sample (Properties\AssemblyInfo.cs).

#if DEBUG
[assembly: Application(Theme = "@style/MainTheme",
                       Debuggable = true)]
#else
[assembly: Application(Theme = "@style/MainTheme",
                       Debuggable = false)]
#endif

However, if you want the Properties\AndroidManifest.xml:

<application android:label="SampleApp" 
             android:debuggable="true" 
             android:theme="@android:style/Theme.Light"
             ... />
Related