Debug apk does not contain all classes

11 views
Skip to first unread message

Павел Шацких

unread,
Jul 13, 2014, 4:53:10 PM7/13/14
to gradle-androi...@googlegroups.com
Hi!

I'm using android-gradle-plugin 0.12.1 with following configuration:

apply plugin: 'android'

dependencies {
    compile 'com.android.support:support-v4:19.+'
    compile 'org.jsoup:jsoup:1.7.+'
}

android {
    compileSdkVersion 19
    buildToolsVersion '19.1.0'

    defaultConfig {
        versionCode 2
        versionName '0.1'
        minSdkVersion 17
        targetSdkVersion 19
    }

    signingConfigs {
        release {
            storeFile file(System.properties['user.home'] + "/.android/alpha.keystore")
            storePassword 'password'
            keyAlias 'defaultkey'
            keyPassword 'password'
        }
    }

    buildTypes {
        release {
            runProguard false
            proguardFile 'proguard.cfg'
            signingConfig android.signingConfigs.release
        }
    }

    lintOptions {
        abortOnError false
    }
}

Release apk builds fine, but debug version is too small (release - 438kb against debug - 119kb). And debug version falls with exception: Caused by: java.lang.ClassNotFoundException: Didn't find class: "com.sample.MainActivity". Release starts fine.
What could be wrong in my configuration?

Thank you!

Павел Шацких

unread,
Jul 13, 2014, 7:27:12 PM7/13/14
to gradle-androi...@googlegroups.com
BTW: With 0.10.+ plugin version everything works fine.
Reply all
Reply to author
Forward
0 new messages