查看本地的ADB版本:
E:\android\android-sdk-windows\platform-tools>adb version
Android Debug Bridge version 1.0.39
Version 0.0.1-4500957
Installed as E:\android\android-sdk-windows\platform-tools\adb.exe
adb server version (32) doesn't match this client (39); killing...
原来是驱动是.39,找一个老版本的.32就行了。
百度一下:adb 1.0.32。
找一个免费的替换就行了。
Could not connect to remote process. Aborting debug session.解决办法
Could not connect to remote process. Aborting debug session.
解决办法
在manifest文件中添加
android:debuggable
标签
举个栗子:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<application
android:debuggable="true"
tools:ignore="HardcodedDebugMode">
</application>