Git Product home page Git Product logo

Comments (2)

xfumihiro avatar xfumihiro commented on July 30, 2024

Can you share the build.gradle file & your project structure? It should work just fine.

from viewinspector.

ihrthk avatar ihrthk commented on July 30, 2024

buildscript {
repositories {
// jcenter{
// url 'http://jcenter.bintray.com'
// }
maven{
url 'http://repo1.maven.org/maven2/'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0'
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.2.1'
// classpath 'com.github.xfumihiro.view-inspector:view-inspector-plugin:0.1.1'
}
}

plugins {
id "me.zhangls.mulchannel" version "0.0.2"
}
allprojects {
repositories {
// jcenter{
// url 'http://jcenter.bintray.com'
// }
maven{
url 'http://repo1.maven.org/maven2/'
}
}
}

apply from: './my.gradle'
apply plugin: 'com.android.application'
apply plugin: 'com.getkeepsafe.dexcount'
//apply plugin: 'view-inspector'

android {
compileSdkVersion 22
buildToolsVersion "23.0.0"

// useLibrary 'org.apache.http.legacy'

defaultConfig {
    minSdkVersion 11
    targetSdkVersion 21
}

sourceSets {
    main {
        manifest.srcFile 'AndroidManifest.xml'
        java.srcDirs = ['src']
        resources.srcDirs = ['src']
        aidl.srcDirs = ['src']
        renderscript.srcDirs = ['src']
        res.srcDirs = ['res']
        assets.srcDirs = ['assets']
        jniLibs.srcDirs = ['libs']
    }

    // Move the tests to tests/java, tests/res, etc...
    instrumentTest.setRoot('tests')

    // Move the build types to build-types/<type>
    // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
    // This moves them out of them default location under src/<type>/... which would
    // conflict with src/ being used by the main source set.
    // Adding new build types or product flavors should be accompanied
    // by a similar customization.
    debug.setRoot('build-types/debug')
    release.setRoot('build-types/release')
}

lintOptions {
    abortOnError false
}



packagingOptions {
    exclude 'META-INF/LICENSE.txt'
    exclude 'META-INF/NOTICE.txt'
}

}

dependencies {
compile fileTree(include: '*.jar', dir: 'libs')
compile project(':library:load-more')
compile project(':library:ptr-lib')
compile project(':library:MainLibs')
compile project(':library:OneKeyShare')
compile 'com.squareup.picasso:picasso:2.5.2'
}

from viewinspector.

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.