android studio报错
报错一:Could not HEAD 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.1.2/gradle-3.1.2.pom'. Received status code 400 from server: Bad Request Enable Gradle 'offline mode' and sync project
解决:1.repositories中加入aliyun maven
buildscript {
repositories {
maven {
url 'http://maven.aliyun.com/nexus/content/groups/public'
}
google()
jcenter()
}
2.设置-将代理设置中过滤掉maven.aliyun.com

报错二:Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support:appcompat-v7:27.0.2. Open File
解决:上个问题在buildscript的仓库中加了aliyun maven,这次在allprojects中的仓库配置中也加入aliyun maven即可
allprojects {
repositories {
maven {
url 'http://maven.aliyun.com/nexus/content/groups/public'
}
google()
jcenter()
}
}
这2个配置都在项目级别的build.gradle配置中

报错三:Configuration on demand is not supported by the current version of the Android Gradle plugin since you are using Gradle version 4.6 or above. Suggestion: disable configuration on demand by setting org.gradle.configureondemand=false in your gradle.properties file or use a Gradle version less than 4.6.
解决:
No need to downgrade!
Disabling configure on demand requires two steps:
Remove org.gradle.configureondemand from gradle.properties.

In Android Studio,
For Mac go to the Preferences > Build, Execution, Deployment > Compiler and uncheck the configure on demand.
For Linux/Windows go to the File > Settings > Build, Execution, Deployment > Compiler and uncheck the configure on demand.

Note, there are 2 gradle.properties files

In your project gradle.properties
${HOME}/.gradle/gradle.properties
Hope this helps :D #HappyCoding
1.删除 org.gradle.configureondemand from gradle.properties
2.file-settings- Build, Execution, Deployment - Compiler 去掉勾选configure on demand

报错四:logcat 错误信息
07-01 21:12:07.310 1196-1340/? D/libfingersense_wrapper: Searching fingersense_classify_touch symbol
07-01 21:12:07.310 1196-1340/? E/libfingersense_wrapper: libfingersense.so was not loaded
未解决

转载于:https://www.cnblogs.com/xiaodebing/p/9251309.html

更多相关文章

  1. 在jitpack创建Android仓库
  2. 使用本地仓库实现最新版ReactNative集成Android
  3. android 工程师级别划分及学习路线
  4. android application级别的图片缓存
  5. Android 发布项目到私服Nexus仓库
  6. 修改android studio 新建项目的build.gradle的仓库源
  7. Android进程级别与如何防止服务进程被回收
  8. Android kernel printk打印级别
  9. android 使用私有maven仓库发布、打包、引用

随机推荐

  1. linux下mysql下载安装
  2. SQL Server中存储过程比直接运行SQL语句
  3. oracle基础知识总结 part 3 : 三范式,PLSQL
  4. Unable to use slave's temporary direct
  5. CentOS下MySQL的安装和修改用户密码
  6. SQL View查找缺失值,应该很简单
  7. 更大的舞台在等你
  8. sql server查看表空间
  9. 条件复杂的sql语句查询
  10. 根据(var2) (var3) (var3)极限X (var3)对