Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle 2.2.0 execution failed: SymbolForDebug

After upgrading gradle of my project (and library attached to it) from 2.1.3 -> 2.2.0 it doesn't build anymore and it says:

Error:Execution failed for task ':app:transformNative_libsWithStripDebugSymbolForDebug'. java.lang.NullPointerException (no error message)

Anyone have a clue on why this is?

like image 968
Tomek Avatar asked Sep 21 '16 11:09

Tomek


2 Answers

I found answer here: https://stackoverflow.com/a/40117446/1088975

The point is to set both targetSdkVersion and compileSdkVersion to 22"

like image 190
Tomek Avatar answered Oct 11 '22 00:10

Tomek


You need to change the following lines in build.gradle file:

    android {
        // SDK 24 worked for me - make sure you have the latest and update it accordingly.
        compileSdkVersion 24
        buildToolsVersion "24.0.2"
    ...
    }
like image 3
Asaf Pinhassi Avatar answered Oct 10 '22 22:10

Asaf Pinhassi