Android Studio 踩坑记录,持续更新
- 一、调试应用时报错:Could not connect to remote process. Aborting debug session.
- 二、Gradle Build 构建到 :app:preDebugAndroidTestBuild 时报错 Conflict with dependency 'com.android.support:support-annotations' in project ':app'. Resolved versions for app (26.1.0) and test app (27.1.1) differ. See https://d.android.com/r/tools/test-apk-dependency-conflicts.html for details.
- 三、新建项目报 Gradle sync failed: No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android
- 持续更新中
由于使用 Android Studio 也有些时候了,一路上踩的坑也很多,为了以后遇坑有个参考,特此记录一下目前为止的坑。
一、调试应用时报错:Could not connect to remote process. Aborting debug session.
症状
Could not connect to remote process. Aborting debug session.
解决办法
1、在 app Module 的 build.gradle 文件中加入:
...
android {
...
buildTypes {
release {
...
}
debug {
// 加入下面三行。
debuggable true
jniDebuggable true
renderscriptDebuggable true
}