GithubHelp home page GithubHelp logo

Cannot run about blockcanaryex HOT 11 CLOSED

seiginonakama avatar seiginonakama commented on August 10, 2024
Cannot run

from blockcanaryex.

Comments (11)

seiginonakama avatar seiginonakama commented on August 10, 2024

what's your 'com.android.tools.build:gradle' version? maybe there has some problem about compatibility.

from blockcanaryex.

hdtuan87 avatar hdtuan87 commented on August 10, 2024

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.

seiginonakama avatar seiginonakama commented on August 10, 2024

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.

hdtuan87 avatar hdtuan87 commented on August 10, 2024

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.

seiginonakama avatar seiginonakama commented on August 10, 2024

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.

hdtuan87 avatar hdtuan87 commented on August 10, 2024

OK it right. it worked.

Thank @seiginonakama

from blockcanaryex.

NiaNingXue avatar NiaNingXue commented on August 10, 2024

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.

seiginonakama avatar seiginonakama commented on August 10, 2024

@NiaNingXue can you tell me your com.android.tools.build:gradle version?

from blockcanaryex.

NiaNingXue avatar NiaNingXue commented on August 10, 2024

@seiginonakama 'com.android.tools.build:gradle:2.3.2'

from blockcanaryex.

seiginonakama avatar seiginonakama commented on August 10, 2024

@NiaNingXue could you try "'com.letv.sarrsdesktop:BlockCanaryExPlugin:0.9.8.4", I fixed this issue in this version

from blockcanaryex.

seiginonakama avatar seiginonakama commented on August 10, 2024

resolved in 0.9.9

from blockcanaryex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.