JingYeoh / FragmentRigger

:boom:A powerful library powered by AOP to manage Fragments.(一个基于AOP设计的Fragment管理框架)
MIT License
2.26k stars 266 forks source link

Could not find method compile() for arguments [org.aspectj:aspectjrt:1.8.9] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. Open File #61

Closed HexScience closed 5 years ago

HexScience commented 5 years ago

I get this error while compiling app.

Could not find method compile() for arguments [org.aspectj:aspectjrt:1.8.9] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

Main gradle dependencies { classpath 'com.hujiang.aspectjx:gradle-android-plugin-aspectjx:2.0.1' classpath 'org.aspectj:aspectjtools:1.8.13' } allprojects { repositories { google() jcenter() mavenCentral() maven {url "https://clojars.org/repo/"} maven { url 'https://jitpack.io' } } }

app gradle apply plugin: 'android-aspectjx' apply plugin: 'com.android.application' annotationProcessor "com.justkiddingbaby:fragment-rigger:1.4.3"

JingYeoh commented 5 years ago

@HexScience use implementation replace annotationProcessor in your app gradle and try again.