wurensen / gradle_plugin_android_aspectjx

A Android gradle plugin that effects AspectJ on Android project and can hook methods in Kotlin, aar and jar file.
Apache License 2.0
365 stars 51 forks source link

接入了aspectjx,运行的时候报错 #83

Open SkyWolf466 opened 9 months ago

SkyWolf466 commented 9 months ago

主工程build.gradle 中配置了classpath("io.github.wurensen:gradle-android-plugin-aspectjx:3.3.2") 主模块中依赖: implementation("org.aspectj:aspectjrt:1.9.7") 同时配置了: aspectjx { enabled = true debug = true exclude( "androidx", "com.google", "com.squareup", "com.alipay", "com.taobao", "org.gradle", "org.apache", "org.jetbrains.kotlin", "module-info", "versions.9" ) // 移除kotlin相关,编译错误和提升速度 exclude("kotlin.jvm", "kotlin.internal") exclude("kotlinx.coroutines.internal", "kotlinx.coroutines.android") }

本地运行时候报错:lateinit property logger has not been initialized

wurensen commented 9 months ago

@SkyWolf466 麻烦把错误日志贴全一点

SkyWolf466 commented 9 months ago

AndroidStudio编译生成apk的时候偶尔会报错,就会一直报错,过段时间自己就好了,能编译通过了,报错信息如下: