当前位置: 首页 > news >正文

flutter报错:Could not find com.meituan.android.walle:plugin

整体报错情况(解决美团渠道包源拉不下来的问题):

A problem occurred configuring root project 'android'.

> Could not resolve all files for configuration ':classpath'.

> Could not find com.meituan.android.walle:plugin:1.1.7.

Searched in the following locations:

- https://maven.aliyun.com/repository/google/com/meituan/android/walle/plugin/1.1.7/plugin-1.1.7.pom

- https://dl.google.com/dl/android/maven2/com/meituan/android/walle/plugin/1.1.7/plugin-1.1.7.pom

- https://jcenter.bintray.com/com/meituan/android/walle/plugin/1.1.7/plugin-1.1.7.pom

- https://repo.maven.apache.org/maven2/com/meituan/android/walle/plugin/1.1.7/plugin-1.1.7.pom

- https://developer.huawei.com/repo/com/meituan/android/walle/plugin/1.1.7/plugin-1.1.7.pom

Required by:

project :

* Try:

> Run with --stacktrace option to get the stack trace.

> Run with --info or --debug option to get more log output.

> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 4s

Error: Gradle task assembleDebug failed with exit code 1

解决:

1. 找到Android/build.gradle 路径下,调整maven,google,jcenter 等先后顺序,直到适合项目的资源加载文件能够成功

2. 参考事例:

原本:

buildscript {

ext.kotlin_version = '1.8.0'

repositories {

maven {

url 'https://maven.aliyun.com/repository/google'

}

google()

jcenter()

mavenCentral()

maven {url 'https://developer.huawei.com/repo/'}

}

dependencies {

classpath 'com.android.tools.build:gradle:7.1.2'

classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

classpath 'com.meituan.android.walle:plugin:1.1.7'

classpath 'com.huawei.agconnect:agcp:1.6.0.300'

}

}

allprojects {

repositories {

maven {

url 'https://maven.aliyun.com/repository/google'

}

google()

jcenter()

mavenCentral()

maven { url 'https://jitpack.io' }

maven {url 'https://developer.huawei.com/repo/'}

}

}

修改后:

buildscript {

    ext.kotlin_version = '1.8.0'

    repositories {

        mavenCentral()

        google()

       maven {

           url 'https://maven.aliyun.com/repository/jcenter'

       }

       maven {

           url 'https://maven.google.com/'

       }

        maven {

            url 'https://maven.aliyun.com/repository/google'

        }

        maven {url 'https://developer.huawei.com/repo/'}

    }

    dependencies {

        classpath 'com.android.tools.build:gradle:7.1.2'

        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

        classpath 'com.meituan.android.walle:plugin:1.1.7'

        classpath 'com.huawei.agconnect:agcp:1.6.0.300'

    }

}

allprojects {

    repositories {

        google()

        mavenCentral()

       maven {

           url 'https://maven.aliyun.com/repository/jcenter'

       }

       maven {

           url 'https://maven.google.com/'

       }

        maven {

            url 'https://maven.aliyun.com/repository/google'

        }

        maven { url 'https://jitpack.io' }

        maven {url 'https://developer.huawei.com/repo/'}

    }

}

至此,祝您成功!

http://www.dtcms.com/a/79924.html

相关文章:

  • centos7.9 脚本一键升级到openssl-3.4.0,openssh-9.9p1
  • JSON 解析中需要清理的危险字符
  • 解析Collections工具类主要功能
  • css实现报警特效
  • 计算机技术系列博客——目录页(持续更新)
  • UVM stop_sequences详细介绍与举例(含代码示例与注意事项)
  • 【初探数据结构】树与二叉树
  • Java 反射机制
  • 织梦DedeCMS如何获得在列表和文章页获得顶级或上级栏目名称
  • Filter Solutions学习-02 【高级设计】界面介绍
  • AI图像理解技术的演进
  • AI日报 - 2025年3月21日
  • PyTorch深度学习框架60天进阶学习计划-第27天:模型量化原理(一)
  • Web-Machine-N7靶机通关攻略
  • Web-Machine-N7靶机:渗透测试与漏洞挖掘的实战利器
  • 【从古生物代谢到硅基计算:解码技术加速的深层密码
  • Spring Boot中定时任务Cron表达式的终极指南
  • 广东启动“跨境电商+产业带”系列活动 三年打造30个产业振兴样板
  • Chia币的一次尝试
  • 利用设计模式构建事件处理系统
  • 探索TouchSocket:轻松上手的高性能网络通信库
  • 笛卡尔轨迹规划之齐次变换矩阵与欧拉角、四元数的转化
  • C++进阶——红黑树的实现
  • 工厂函数详解:概念、目的与作用
  • 网站测速:提升用户体验的关键
  • 14-图论-多源最短路径Floyd算法
  • 1.5.4 掌握Scala内建控制结构 - 条件循环
  • 智能蔬菜收获移动平台设计(大纲)
  • fastadmin后台管理员日志指定方法不记录
  • openharmony中hilog实证记录说明(3.1和5.0版本)