android studio 导入项目卡死,AndroidStudio导入新项目一直卡在Building gradle project info...
对于新手配置Gradle是一件很痛苦的事,记住二句话绝对搞定
1.在Gradle-->gradle-wrapper.properties中配置distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip ;//这个是modle的版本
2.在build.gradle中更改classpath 'com.android.tools.build:gradle:2.2.2' //这个是工具用到的版本
Example:
apply plugin: 'com.android.application'
apply plugin: 'android-apt'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId ""
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
//极光推送配置
sourceSets {
main {
jniLibs.srcDirs = ['libs']
assets.srcDirs = ['src/main/assets', 'src/main/assets/']
}
}
buildTypes {
release {
minifyEnabled true
signingConfig signingConfigs.debug
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
minifyEnabled false
signingConfig signingConfigs.debug
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
signingConfigs {
debug {
storeFile file('hanyi.jks')
storePassword "0213abcd"
keyAlias "hanyi"
keyPassword "0213abcd"
}
}
lintOptions {
checkReleaseBuilds false
abortOnError false
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:support-v4:23.4.0'
compile 'com.android.support:design:24.2.0'
//json解析Gson,fastjson
compile 'com.google.code.gson:gson:2.7'
compile 'com.alibaba:fastjson:1.2.21'
//图片加载库Glide
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.facebook.fresco:fresco:0.12.0'//我后加的
compile 'com.zxy.android:recovery:0.0.8'//crash后处理,在banner项目里有用到,沉浸式是用的这个
//轮播图库
compile 'com.youth.banner:banner:1.3.3'
testCompile 'junit:junit:4.12'
//compile 'com.recker.flybanner:flybanner:1.3' //enjoy用的
//okhttputils库
compile 'com.zhy:okhttputils:2.6.2'
compile 'com.squareup.okhttp3:okhttp:3.4.1'
// butterknife 关联类库
compile 'com.jakewharton:butterknife:8.4.0'
apt 'com.jakewharton:butterknife-compiler:8.4.0'
//EventBus
compile 'org.greenrobot:eventbus:3.0.0'
// BaseRecyclerView适配器
compile 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.5.0'
//友盟登录分享
compile files('libs/umeng_social_api.jar')
compile files('libs/umeng_social_net.jar')
compile files('libs/SocialSDK_QQ_Simplify.jar')
compile files('libs/SocialSDK_Sina_Simplify.jar')
compile files('libs/SocialSDK_WeChat_Simplify.jar')
compile files('libs/umeng_social_tool.jar')
compile files('libs/umeng_social_shareview.jar')
//融云即时通讯
compile project(':Rong_Cloud_Android_IMKit_SDK_v2_7_3_stable')
//极光推送
compile files('libs/jpush-android-2.2.0.jar')
//Zxing
compile 'cn.yipianfengye.android:zxing-library:2.1'
//6.0添加权限
compile 'com.yanzhenjie:permission:1.0.3'
compile 'pub.devrel:easypermissions:0.3.0'//个人推荐用这个
}
AndroidStudio导入新项目一直卡在Building gradle project info的解决解决方案
来源:https://www.cnblogs.com/dubo-/p/7010667.html
android studio 导入项目卡死,AndroidStudio导入新项目一直卡在Building gradle project info...相关推荐
- AndroidStudio导入项目一直卡在Building gradle project info最快速解决方案
AndroidStudio导入项目一直卡在Building gradle project info最快速解决方案 参考文章: (1)AndroidStudio导入项目一直卡在Building grad ...
- AndroidStudio创建项目一直卡在Building gradle project info的解决方法
解决办法主要有两种,一是直接下载gradle离线包,二是修改项目的gradle-wrapper.properties里的gradle版本为自己电脑已有的版本. 离线包下载导入方式 查看所需gradle ...
- AndroidStudio导入新项目一直卡在Building gradle project
解决方案: 1.随便找一个你能运行的as项目 2.打开gradle-wrapper.properties,文件目录:项目/gradle/wrapper/gradle-wrapper.propertie ...
- [AS日记]MacOS的Android Studio卡在Building Gradle Project info走不动 的处理方法
原因你懂的,卡墙了... 跟第一篇日记的差不多,就是位置变了 原因:gradle库下载不完整 解决方案:自己下载gradle库,找到版本链接,迅雷后,把包复制过去 文件位置: 项目位置/gradle/ ...
- 解决AndroidStudio更新后在 Building gradle project info 一直卡住
Android Studio导入项目的时候,一直卡在Building gradle project info这一步,主要原因还是因为被墙的结果.gradle官网虽然可以访问,但是速度连蜗牛都赶不上.. ...
- Android让APP运行在新环境上,Android Studio环境在真手机运行app项目教程
对于Android Studio环境在真手机运行app项目的相关操作有许多网友咨询过,小编今天就分享Android Studio环境在真手机运行app项目的详细步骤,一起好好学习下吧! 要想将Andr ...
- android studio viewo,android studio 3.6.0 绑定视图新特性的方法
Android studio 3.6.0 绑定视图使用方法 1.确保你的 build gradle 最低为3.6.0 dependencies { classpath 'com.android.too ...
- c语言教改课题开题报告,教改项目结题及新项目开题报告会简讯
2008年北京大学口腔医学院教改项目结题及新项目开题报告会简讯 2008年3月10日下午,教学办公室组织召开了2008年教学改革项目结题及新项目开题报告会.本次报告会共有八个教改项目结题,同时有十五个 ...
- android studio开发的时候出现design editor is unavailable until after a successful project sync问题的解决方法
android studio开发的时候出现design editor is unavailable until after a successful project sync问题的解决方法 参考文章: ...
最新文章
- 使用AD5933测量元器件的谐振特性
- vue xss 存在_默认情况下,Vue是否为XSS提供安全性或防御XSS?
- python安装好后打不开_windows的cmd中输入python后打不开python?
- jdk的一条命令查看运行参数
- 定时备份_如何将电脑中的文件进行定时备份?
- CssVariables_01
- 为什么只需要一个eden而需要两个survivor?
- VS2017创建Linux项目实现远程GDB调试
- boost::smart_ptr模块boost/pointer_to_other.hpp 的测试
- matlab中的lower,请问:MATLAB中,有实现Gabor变换的函数吗?
- Java调试器–权威的工具列表
- 10、32位 x86处理器编程架构
- 游戏党,iQOO Neo5这部手机能玩目前流行的大型手游吗?
- Python Flask web后端开发
- 【C#】Windows Image Acquisition (WIA) 的用法
- Codeforces 1178
- js获取网络时间(axios获取响应头时间)
- 别再售卖 5块钱 的 Win10 激活码了,后果很严重
- 【go 语言】linux下go开发教程3:Golang弃用go get工具
- 正面管教读书笔记 02 几个基本概念
热门文章
- C#中控件如何设置透明色
- dataframe保存为txt_竟然可以用 Python 抓取公号文章保存成 PDF
- php远程连接403,php中出现“ HTTP 异常 403 - 禁止访问”解决方法 总结
- python文件打开模式中、使用w模式、文件指针指向_被python文件模式“w+”所迷惑
- 解决iview表单中时间选择起的验证失败问题
- springboot日志写入mysql_44. Spring Boot日志记录SLF4J【从零开始学Spring Boot】
- python中eps参数_2019-01-23 python PIL 编辑 EPS 文件调整大小并拼接-失败告终
- linux中su命令源码,Linux-命令-su
- 说说如何使用 Ant 把文件推送到 Linux
- 360获公安部“优秀技术支持单位”等七项荣誉