Programmer algorithm practice must read, common Java API skills to share>>>
1. In the menu bar, find tools – > Android-> Enable ADB integration, check
2. Add debuggable true to buildtypes of build.gradle in app module, such as:
buildTypes {
release {
debuggable true
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
}
3. Close studio, unplug the device, connect the device again and open studio