Android studio新版本aar包导入项目中配置
2023-12-13 19:56:08
目录
1、so、aar导入在项目build.gradle中配置
repositories {
flatDir {
dirs 'libs'
}
}
2、新版本迁移到setting.grade配置
flatDir { dirs 'libs' }
如下图所示
pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter' }
maven { url 'https://maven.aliyun.com/nexus/content/repositories/google' }
maven { url 'https://maven.aliyun.com/nexus/content/repositories/gradle-plugin' }
maven { url 'https://jitpack.io' }
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.google.com' }
maven {
url "https://repo.eclipse.org/content/repositories/paho-snapshots/"
}
flatDir {
dirs 'libs'
}
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter' }
maven { url 'https://maven.aliyun.com/nexus/content/repositories/google' }
maven { url 'https://maven.aliyun.com/nexus/content/repositories/gradle-plugin' }
maven { url 'https://jitpack.io' }
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.google.com' }
maven {
url "https://repo.eclipse.org/content/repositories/paho-snapshots/"
}
flatDir {
dirs 'libs'
}
}
}
include ':app'
include ':uniplugin_module'
include ':uniplugin_component'
include ':uniplugin_richalert'
include ':mylibrary'
include ':core'
include ':uiasr'
include ':uidialog'
文章来源:https://blog.csdn.net/shi450561200/article/details/134826326
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。 如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:veading@qq.com进行投诉反馈,一经查实,立即删除!
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。 如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:veading@qq.com进行投诉反馈,一经查实,立即删除!