xiaoyaoyou1212 / BLE

✨Android BLE基础操作框架,基于回调,操作简单。包含扫描、多连接、广播包解析、服务读写及通知等功能。
http://www.huwei.tech/
Apache License 2.0
1.38k stars 364 forks source link

引用包出错 #99

Closed canbus closed 1 year ago

canbus commented 1 year ago

根据readme.新建一个工程,然后在build.grad中添加依赖关系.如下: dependencies { implementation 'com.vise.xiaoyaoyou:baseble:2.0.6' ... } 编译的时候会提示: Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugCompileClasspath'.

请问要如何处理

canbus commented 1 year ago

在setting.gradle中的dependencyResolutionManagement中加入maven { url 'https://jcenter.bintray.com'}解决 像这样: dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { google() mavenCentral() maven { url 'https://jitpack.io'} maven { url 'https://jcenter.bintray.com'} } }