Android studio新版本aar包导入项目中配置

news/2025/2/22 23:00:35

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'


http://www.niftyadmin.cn/n/5243492.html

相关文章

uni-app 设置tabBar的setTabBarBadge购物车/消息等角标

目录 一、效果二、代码实现二、全部代码1.index.vue2.cart.vue 三、真实案例参考最后 一、效果 二、代码实现 只要使用uni.setTabBarBadge和uni.removeTabBarBadge来进行对红点的设置和移除。 主要代码: //设置红点 uni.setTabBarBadge({index: 1, // 底部菜单栏…

Django大回顾 - 8 中间件、csrf认证相关

【1】中间件 中间件是什么? 中间件顾名思义,是介于request与response处理之间的一道处理过程,相对比较轻量级,并且在全局上改变django的输入与输出。因为改变的是全局,所以需要谨慎实用,用不好会影响到性能…

html通过CDN引入Vue组件抽出复用

html通过CDN引入Vue组件抽出复用 近期遇到个需求,就是需要在.net MVC的项目中,对已有的项目的首页进行优化,也就是写原生html和js。但是咱是一个写前端的,写html还可以,.net的话,开发也不方便,还…

解决vue3使用iconpark控制台预警提示问题

前言 最近在项目中使用 iconpark-icon 来管理图标,一切都很顺利,引入链接后,图标正常显示,没有报错。但是控制台却发出了预警信息。 [Vue warn]: Failed to resolve component: iconpark-icon If this is a native custom eleme…

iSlide怎么安装到PPT iSlide永久激活码下载和使用

iSlide安装到PPT教程 要将iSlide安装到Microsoft PowerPoint中,请按照以下步骤操作: 1、首先下载iSlide软件(软件下载地址见文章底部) 2、选择安装位置:安装程序会提示您选择安装位置。选择一个合适的位置&#xff0…

MATLAB——二维小波的单层分解

%% 学习目标:二维小波的单层分解 %% 二维小波适合图像处理和分析,将图像分解为4个图像 两个维度 低通,高通 clear all; close all; load woman.mat; %% which woman.mat Yind2gray(X,map); %将索引图像转换为灰度图像 [c…

Python之html2text,清晰解读HTML内容!

更多Python学习内容:ipengtao.com 大家好,我是彭涛,今天为大家分享 Python之html2text,清晰解读HTML内容,全文3900字,阅读大约10分钟。 HTML是Web开发中常见的标记语言,但有时我们需要将HTML内容…

Flinksql bug :Illegal mixing of types in CASE or COALESCE statement

报错信息 org.apache.flink.table.api.ValidationException: SQL validation failed. From line 66, column 23 to line 68, column 46: Illegal mixing of types in CASE or COALESCE statement org.apache.calcite.runtime.CalciteContextException: From line 66, column 2…