FlyJingFish / AndroidAOP

🔥🔥🔥帮助 Android App 改造成AOP架构的框架,一个注解就可以请求权限、切换线程、禁止多点、监测所有点击事件、监测生命周期等等(Help you transform into an Android platform framework with AOP architecture)
https://flyjingfish.github.io/AndroidAOP/
Apache License 2.0
466 stars 30 forks source link

从1.6.2升级版本到1.6.8时出现错误 #17

Closed shesio closed 6 months ago

shesio commented 6 months ago

描述一下大概怎么回事

升级版本时候出现错误,回退使用1.6.2可以使用

你的代码

plugins { id 'com.android.application' version '8.2.1' apply false id 'com.android.library' version '8.2.1' apply false id 'org.jetbrains.kotlin.android' version '1.7.20' apply false id "io.github.FlyJingFish.AndroidAop.android-aop" version "1.6.8" id 'com.google.devtools.ksp' version '1.8.0-1.0.9' apply false } app中的依赖: //aop begin implementation 'io.github.FlyJingFish.AndroidAop:android-aop-core:1.6.8' implementation 'io.github.FlyJingFish.AndroidAop:android-aop-annotation:1.6.8' ksp 'io.github.FlyJingFish.AndroidAop:android-aop-ksp:1.6.8' //aop end

错误日志

CONFIGURE FAILED in 428ms

库的版本号:

1.6.8 当前最新

shesio commented 6 months ago

尝试使用1.6.7时候报另一个错,这是日志: build.gradle' line: 40

Plugin [id: 'io.github.FlyJingFish.AndroidAop.android-aop', version: '1.6.7'] was not found in any of the following sources:

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.2/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

shesio commented 6 months ago

1.6.6是这个错: Unable to find method ''boolean com.android.build.gradle.options.OptionParsers.parseBoolean(java.lang.String, java.lang.Object)'' 'boolean com.android.build.gradle.options.OptionParsers.parseBoolean(java.lang.String, java.lang.Object)'

Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)

Re-download dependencies and sync project (requires network) The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.

Stop Gradle build processes (requires restart) Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.

In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

FlyJingFish commented 6 months ago

你确定你下载下来了?把阿里云等镜像去掉再试试

shesio commented 6 months ago

1.6.5可以正常同步使用,猜测是我的gradle版本有点高?1.6.5同步成功,证明网络没有问题,没有用阿里云的镜像,这是我的配置: pluginManagement { repositories { google() mavenCentral() gradlePluginPortal() jcenter() maven { url "https://jitpack.io" } } } dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { google() mavenCentral() jcenter() maven { url "https://jitpack.io" } } versionCatalogs { libs { version('ksp', '1.8.0-1.0.9') library('appcompat', 'androidx.appcompat:appcompat:1.3.1') library('play-services-location', 'com.google.android.gms:play-services-location:21.0.1') library('play-services-maps', 'com.google.android.gms:play-services-maps:18.1.0') } } }

FlyJingFish commented 6 months ago

版本号不一定是连续的,不要瞎试,能用的只有这里发布的,另外你把阿里镜像去掉再去下载最新包

FlyJingFish commented 6 months ago

gradlePluginPortal()放到最前边试试

shesio commented 6 months ago

gradlePluginPortal()放到最前边试试 不行啊

FlyJingFish commented 6 months ago

报错日志有点长……我刚看到报错信息,待会发个新包

FlyJingFish commented 6 months ago

你加下首页的qq群,单独测试下