AndroidStudio运行错误

qq_33190755 2017-09-19 01:14:19
我在github上下载的然后导入进去之后准备运行试试,结果他就显示这个问题请问这是怎么回事。。第一次用这个软件
...全文
161 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
qq_33190755 2017-10-08
  • 打赏
  • 举报
回复
感谢各位,我发现是一个是因为我没升级第二个是因为我把jcenter注释掉了,打扰打扰
江三木洛 2017-09-19
  • 打赏
  • 举报
回复
引用 8 楼 xw13782513621 的回复:
[quote=引用 7 楼 qq_33190755 的回复:] [quote=引用 6 楼 qq_33190755 的回复:] [quote=引用 4 楼 xw13782513621 的回复:] [quote=引用 2 楼 qq_33190755 的回复:] 然后我rebuild之后,他又提示 Could not resolve com.squareup.okhttp3:okhttp:3.5.0.这个怎么办。。。。。
不要把jcenter()注释掉[/quote]不注释就行了嘛。。。[/quote] 没有注释 他又提示 Error:The SDK Build Tools revision (22.0.1) is too low for project ':networklibrary'. Minimum required is 25.0.0 <a href="install.build.tools">Install Build Tools 25.0.0, update version in build file and sync project</a><br><a href="openFile:C:/Users/Scw/Desktop/Gdgm-jw_demo/networklibrary/build.gradle">Open File</a>[/quote] 这是你的SDK版本低呗,点错误信息会提示你升级的,按照提示步骤一步步来呗[/quote] 然后在networklibrary的build.gradle中把buildToolsVersion改成25.0.0就完事了
江三木洛 2017-09-19
  • 打赏
  • 举报
回复
引用 7 楼 qq_33190755 的回复:
[quote=引用 6 楼 qq_33190755 的回复:] [quote=引用 4 楼 xw13782513621 的回复:] [quote=引用 2 楼 qq_33190755 的回复:] 然后我rebuild之后,他又提示 Could not resolve com.squareup.okhttp3:okhttp:3.5.0.这个怎么办。。。。。
不要把jcenter()注释掉[/quote]不注释就行了嘛。。。[/quote] 没有注释 他又提示 Error:The SDK Build Tools revision (22.0.1) is too low for project ':networklibrary'. Minimum required is 25.0.0 <a href="install.build.tools">Install Build Tools 25.0.0, update version in build file and sync project</a><br><a href="openFile:C:/Users/Scw/Desktop/Gdgm-jw_demo/networklibrary/build.gradle">Open File</a>[/quote] 这是你的SDK版本低呗,点错误信息会提示你升级的,按照提示步骤一步步来呗
怀君 2017-09-19
  • 打赏
  • 举报
回复
把maven 链接地址换一下 url 'https://maven.google.com/'
qq_33190755 2017-09-19
  • 打赏
  • 举报
回复
引用 6 楼 qq_33190755 的回复:
[quote=引用 4 楼 xw13782513621 的回复:] [quote=引用 2 楼 qq_33190755 的回复:] 然后我rebuild之后,他又提示 Could not resolve com.squareup.okhttp3:okhttp:3.5.0.这个怎么办。。。。。
不要把jcenter()注释掉[/quote]不注释就行了嘛。。。[/quote] 没有注释 他又提示 Error:The SDK Build Tools revision (22.0.1) is too low for project ':networklibrary'. Minimum required is 25.0.0 <a href="install.build.tools">Install Build Tools 25.0.0, update version in build file and sync project</a><br><a href="openFile:C:/Users/Scw/Desktop/Gdgm-jw_demo/networklibrary/build.gradle">Open File</a>
qq_33190755 2017-09-19
  • 打赏
  • 举报
回复
然后我rebuild之后,他又提示 Could not resolve com.squareup.okhttp3:okhttp:3.5.0.这个怎么办。。。。。
qq_33190755 2017-09-19
  • 打赏
  • 举报
回复
引用 4 楼 xw13782513621 的回复:
[quote=引用 2 楼 qq_33190755 的回复:] 然后我rebuild之后,他又提示 Could not resolve com.squareup.okhttp3:okhttp:3.5.0.这个怎么办。。。。。
不要把jcenter()注释掉[/quote]不注释就行了嘛。。。
qq_33190755 2017-09-19
  • 打赏
  • 举报
回复
[quote=引用 3 楼 u013290250 的回复:] 把maven 链接地址换一下 }
repositories {
        jcenter()
        maven { url 'http://repo1.maven.org/maven2' }

        maven { url "https://jitpack.io" }
      
    }
 
}
这是原代码,该怎么换?换哪一句呢?
江三木洛 2017-09-19
  • 打赏
  • 举报
回复
引用 2 楼 qq_33190755 的回复:
然后我rebuild之后,他又提示 Could not resolve com.squareup.okhttp3:okhttp:3.5.0.这个怎么办。。。。。
不要把jcenter()注释掉
qq_33190755 2017-09-19
  • 打赏
  • 举报
回复
还有个问题是每次Gradle sync的时候速度会特别慢这是为什么?

80,350

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧