ARouter icon indicating copy to clipboard operation
ARouter copied to clipboard

🔥🔥🔥ARouter适配了 gradle8.x.x 版本有需要的自取

Open chenyi2013 opened this issue 2 months ago • 0 comments

适配了 gradle 8.x,有需要的自取

如何使用

    1. 在根目录的build.gralde下添加
	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}
	
	buildscript {
	     dependencies {
	         // 添加插件依赖
	      classpath "com.github.chenyi2013.ARouters:arouter-register:2.0.2"
          classpath "com.android.tools.build:gradle:8.x.x"
          classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.0"
	     }
	}
    2. 在项目中的build.gralde下添加
        // 在主项目里添加插件依赖
        apply plugin: 'com.alibaba.arouter'
        
        dependencies {
            // aar依赖
            implementation 'com.github.chenyi2013.ARouters:arouter-api:2.0.2'  
            kapt 'com.github.chenyi2013.ARouters:arouter-compiler:2.0.2' 
        }

适配后的源码地址:https://github.com/chenyi2013/ARouters

chenyi2013 avatar Dec 04 '25 10:12 chenyi2013