Skip to content

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

@chenyi2013

Description

@chenyi2013

适配了 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions