We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
完全按照文档的步骤去配置的 ,无法插桩成功怎么回事? 我用的另一种方法确可以 配置贴一下 : 1、根目录build.gradle `buildscript { repositories { google() jcenter() } dependencies { classpath "com.android.tools.build:gradle:3.3.0" classpath 'com.hujiang.aspectjx:gradle-android-plugin-aspectjx:2.0.10' } }
allprojects { repositories { google() jcenter() } }
task clean(type: Delete) { delete rootProject.buildDir }`
2、aspectjx module的build.gradle `plugins { id 'com.android.library' }
android { compileSdkVersion 30 buildToolsVersion "30.0.3"
defaultConfig { minSdkVersion 16 targetSdkVersion 30 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" consumerProguardFiles "consumer-rules.pro" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 }
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.3.0' implementation 'com.google.android.material:material:1.3.0' testImplementation 'junit:junit:4.+' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' api 'org.aspectj:aspectjrt:1.9.+'
}`
3、app module的build.gradle `apply plugin:'com.android.application' apply plugin: 'com.hujiang.android-aspectjx' //apply plugin: 'android-aspectjx'
defaultConfig { applicationId "com.zhx.aspectdemo" minSdkVersion 16 targetSdkVersion 30 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 }
aspectjx { //指定只对含有关键字'universal-image-loader', 'AspectJX-Demo/library'的库进行织入扫描,忽略其他库,提升编译效率 // includeJarFilter 'universal-image-loader', 'AspectJX-Demo/library' // excludeJarFilter '.jar' // ajcArgs '-Xlint:warning' exclude 'com.google','androidx' enabled true }
api project(':aspectmodule') implementation 'androidx.appcompat:appcompat:1.3.0' implementation 'com.google.android.material:material:1.3.0' implementation 'androidx.constraintlayout:constraintlayout:2.0.4' testImplementation 'junit:junit:4.+' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
The text was updated successfully, but these errors were encountered:
遇到同样的问题,求解
Sorry, something went wrong.
No branches or pull requests
完全按照文档的步骤去配置的 ,无法插桩成功怎么回事? 我用的另一种方法确可以
配置贴一下 :
1、根目录build.gradle
`buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:3.3.0"
classpath 'com.hujiang.aspectjx:gradle-android-plugin-aspectjx:2.0.10'
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}`
2、aspectjx module的build.gradle
`plugins {
id 'com.android.library'
}
android {
compileSdkVersion 30
buildToolsVersion "30.0.3"
}
dependencies {
}`
3、app module的build.gradle
`apply plugin:'com.android.application'
apply plugin: 'com.hujiang.android-aspectjx'
//apply plugin: 'android-aspectjx'
android {
compileSdkVersion 30
buildToolsVersion "30.0.3"
}
aspectjx {
//指定只对含有关键字'universal-image-loader', 'AspectJX-Demo/library'的库进行织入扫描,忽略其他库,提升编译效率
// includeJarFilter 'universal-image-loader', 'AspectJX-Demo/library'
// excludeJarFilter '.jar'
// ajcArgs '-Xlint:warning'
exclude 'com.google','androidx'
enabled true
}
dependencies {
}`
The text was updated successfully, but these errors were encountered: