lundi 19 février 2018

android test: how to add compiler options

How to add compile options for compiling tests?

compileAndroidTestJava {
    options.compilerArgs << "-s"
    options.compilerArgs << "Foo"

    doFirst {

    }
}

The task is not called.

Tried:

compileAndroidDebugUnitTestJavaWithJavac {

}

compileAndroidDebugJavaWithJavac {

}

Error: Could not find these methods.

Aucun commentaire:

Enregistrer un commentaire