• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Android:debugging to false

Ayus

Lurker
Hello devs , I am new to Android development I want to upload my app to Samsung Galaxy store. They need Android debugging to false . I am not able to do that .
I have written it in xml . Gradle happens. I again upload to Samsung. They reject it. Can anyone please help?
 
Your build gradle for the app needs to be changed. It will look something like this.

apply plugin: 'com.android.application'

android {
compileSdkVersion 29

defaultConfig {
applicationId "com.example.*"
minSdkVersion 18
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
debuggable true
}
}
}

Change "debuggable true" to "debuggable false"
 
Back
Top Bottom