标签:col aliyun adl div content oid nexus ali str
问题:
用AndroidStudio创建no Activity project,发现项目没有Sync成功,而且右键菜单new没有activity。
解决:
因为没有sync,需要修改下build.gradle,可以用阿里镜像:
build.gradle
repositories { //google() //jcenter() maven{ url ‘https://maven.aliyun.com/repository/google‘ } maven{ url ‘https://maven.aliyun.com/repository/jcenter‘ } maven{url ‘http://maven.aliyun.com/nexus/content/groups/public‘} } allprojects { repositories { //google() //jcenter() maven{ url ‘https://maven.aliyun.com/repository/google‘ } maven{ url ‘https://maven.aliyun.com/repository/jcenter‘ } maven{url ‘http://maven.aliyun.com/nexus/content/groups/public‘} } }
反正就是把goodle()、jcenter()用maven换了。
标签:col aliyun adl div content oid nexus ali str
原文地址:https://www.cnblogs.com/fengyaoyao/p/13193386.html