Comments (11)
what's your 'com.android.tools.build:gradle' version? maybe there has some problem about compatibility.
from blockcanaryex.
here
classpath 'com.android.tools.build:gradle:2.3.1'
classpath 'com.google.gms:google-services:3.0.0'
I use with google service
from blockcanaryex.
I tried 'com.android.tools.build:gradle:2.3.1' but it worked fine in my project. Any information else ?about your gradle version or provide your build.gradle ?
from blockcanaryex.
Yes.
module build.gradle
apply plugin: 'com.android.application'
apply plugin: 'blockcanaryex'
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "com.example.scorpion.testproject"
minSdkVersion 15
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
task downloadFile {
ant.get(src: 'https://moneylover.me/data/currency.json', dest: 'src/main/assets/', skipexisting: 'false')
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.0-beta4'
compile 'com.android.support:design:25.3.1'
testCompile "org.robolectric:robolectric:3.3.2"
testCompile "org.robolectric:shadows-support-v4:3.0"
testCompile 'junit:junit:4.12'
debugCompile 'com.letv.sarrsdesktop:BlockCanaryExJRT:0.9.8.2'
releaseCompile 'com.letv.sarrsdesktop:BlockCanaryExJRTNoOp:0.9.8.2'
testCompile 'com.letv.sarrsdesktop:BlockCanaryExJRTNoOp:0.9.8.2'
}
top project build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.1'
classpath 'org.robolectric:robolectric-gradle-plugin:1.0.1'
classpath 'com.letv.sarrsdesktop:BlockCanaryExPlugin:0.9.8.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
error log:
Error:Execution failed for task ':app:transformClassesWithBlockCanaryExForDebug'.
> No such property: androidDependencies for class:
com.android.build.gradle.internal.dependency.DependencyContainerImpl
Possible solutions: allAndroidDependencies
from blockcanaryex.
Weird, I use your build.gradle but also worked fine...O_O
could you try 'com.letv.sarrsdesktop:BlockCanaryExPlugin:0.9.8.2' ?
from blockcanaryex.
OK it right. it worked.
Thank @seiginonakama
from blockcanaryex.
I have the similar error when applying "'com.letv.sarrsdesktop:BlockCanaryExPlugin:0.9.8.3" and version 0.9.8.2 is ok
from blockcanaryex.
@NiaNingXue can you tell me your com.android.tools.build:gradle version?
from blockcanaryex.
@seiginonakama 'com.android.tools.build:gradle:2.3.2'
from blockcanaryex.
@NiaNingXue could you try "'com.letv.sarrsdesktop:BlockCanaryExPlugin:0.9.8.4", I fixed this issue in this version
from blockcanaryex.
resolved in 0.9.9
from blockcanaryex.
Related Issues (20)
- After upgrade Android gradle plugin to 3.0.0, apply plugin blockcanaryex failed. HOT 5
- 貌似插件里的代码有错误! HOT 1
- 没有提示代码行数 HOT 1
- 集成后报空指针异常 HOT 1
- 使用MultiDex.install(this)后, 编译通过, 但项目运行不起来 HOT 5
- include的逻辑有问题!!!!!!! HOT 1
- 通知notification显示的卡顿次数数目不对
- Hook Trace部分的代码,在vivo X6s手机上crash HOT 1
- Not compat 'com.android.tools.build:gradle:3.1.0-alpha02'.
- 编译不通过 java.io.IOException: Could not delete path......\transforms\desugar\debug\10.jar'. HOT 2
- 编译不通过,org.gradle.api.plugins.PluginInstantiationException: Could not create plugin of type 'BlockCanaryExPlugin'. HOT 1
- Could not initialize class com.letv.sarrsdesktop.blockcanaryex.BlockCanaryExPlugin HOT 9
- android studio 3.0中在app的build.gradle中引入apply plugin: 'blockcanaryex'会报错 HOT 4
- Is it possible support android 27 and android 28?
- Looper.logging 被 TraceEvent 覆盖,导致失效
- gc-event:null,heavy-methods:null ,too-heavy-methods:null
- Could not initialize class com.letv.sarrsdesktop.blockcanaryex.BlockCanaryExPlugin Open File
- 为什么不维护了呢?枉费大家对你的信任。有如下问题:1、notification不通知2、不显示耗时的方法堆栈 HOT 1
- Failed to apply plugin [id 'blockcanaryex'] HOT 2
- gradle4.1.3已经集成不了了
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blockcanaryex.