Abhishek Ram
Abhishek Ram

Reputation: 21

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

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.

Upvotes: 2

Views: 5858

Answers (2)

Manu Mohan
Manu Mohan

Reputation: 1804

In Xamarin or MAUI Android, if you've any error in your androidmanifest.xml file, then also the same error can happen. Try verifying your androidmanifest ( especially for any duplicate tags for . If everything is fine, check if your solution is running on debug mode and add android:debuggable="true" to your androidmanifest.xml. Please remember to remove it when packaging

Upvotes: 1

Damian
Damian

Reputation: 1249

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"
             ... />

Upvotes: 2

Related Questions