3

I have been learning how to use hidden API these days, and I know how to use classes.jar.
I put this classes.jar in the app module as a library.

When I run this application, I get

"Error:Execution failed for task ':app:dexDebug'.> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_45\bin\java.exe'' finished with non-zero exit value 2"

I really hope somebody can help me.

build.gradle:

apply plugin: 'com.android.application'
android {
    compileSdkVersion 19
    buildToolsVersion "21.1.2"

    defaultConfig {
        applicationId "com.android.wifidisplay"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
}

dependencies {
    compile files('classes-dex2jar.jar')
}
Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
Stone305585
  • 101
  • 1
  • 10

2 Answers2

1

this question answered in this

https://stackoverflow.com/a/30028505

this answer worked for me

Community
  • 1
  • 1
Mahdi Youseftabar
  • 2,273
  • 1
  • 22
  • 29
0

You can solve by choosing the option " Build > Clean Project " in Android studio.

Joshua
  • 61
  • 1
  • 9