解决方案:

在/android/app/build.gradle内编辑
新增mavenLocal() google()就能解决

buildscript {    repositories {//        新增mavenLocal() google()就能解决        mavenLocal()        google()        jcenter()    }    dependencies {        classpath 'com.android.tools.build:gradle:3.0.1'        // NOTE: Do not place your application dependencies here; they belong        // in the individual module build.gradle files    }}

更多相关文章

  1. 解决:android NDK的AMediaCodec配置surface失败问题
  2. 报错 Error:Could not install Gradle distribution from 'https
  3. Android(安卓)lottie java.lang.IllegalStateException: Missing
  4. Android欢迎页面闪屏解决方法
  5. Android的OutOfMemory解决
  6. CMake相关问题解决记录
  7. Android使用Fragment,不能得到Fragment内部控件,findViewById()结
  8. 解决android模拟器太大,小屏幕无法完全显示的问题
  9. Android(安卓)Studio中两个模拟器互发短信的解决方案

随机推荐

  1. Android(安卓)开发中使用 SQLite 数据库
  2. android menu菜单
  3. AVD(android virtual device)路径设置
  4. 在Android上本机运行的服务器
  5. Android(安卓)全自动js脚本测试 Appium教
  6. 【Android】数据存储之Shared Preference
  7. 用自定义 LayoutManager 实现 Android(安
  8. android与java web交互完成简单的登录和
  9. Android心得3.2--用SAX解析器解析xml文件
  10. Google官方提供的有用的Android范例程序,