AndroidStudio2021版,Gradle7.0+,Java开发环境使用AndroidAnnotations4.9.0最新配置

This blog details the configuration for using AndroidAnnotations version 4.9.0 in an Android development environment with Gradle 7.0 and Java. It covers both app module and library module setups, including dependency management, Butter Knife integration for generating R2 in libraries, and necessary configurations in build.gradle files." 112160362,10540695,Webpack Tree Shaking 实战解析,"['webpack', '模块打包', '优化', 'JavaScript', '前端开发']

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

对于Kotlin开发环境的配置,可查看 Kotlin配置AndroidAnnotations

对于app的module中使用AndroidAnnotations,配置使用都很简单,网上有很多文章。但是对于library中使用Androidannotations,需要使用resName指定资源或者使用butterknife生成R2

一:先说根build.gradle配置:AndroidAnnotations的maven仓库

// 此配置在新版中可能会放到settings.gradle中

allprojects {
    repositories {
        mavenCentral()
        mavenLocal()
        jcenter()
        google()

        //androidannotations仓库地址
        maven {
            url = 'https://oss.sonatype.org/content/repositories/snapshots'
        }

    }
}

二:app的build.gradle配置:

def AAVersion = "4.9.0-SNAPSHOT"

//annotations配置

annotationProcessor "org.androidannotations:androidannotations:$AAVersion"
implementation "org.androidannotat

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值