Skip to content Skip to sidebar Skip to footer

Java.lang.nosuchmethoderror: No Static Method Getdrawable(landroid/content/context;i)landroid/graphics/drawable/drawable;

I updated Android Studio to 2.2 and my project won't build anymore. My Activity's super.onCreate(savedInstanceState) gives me an error: java.lang.NoSuchMethodError: No static metho

Solution 1:

I was able to resolve this problem. Under my /libs folder I had an old android-support-v13.jar that got compiled with gradle. My app tried to use the ContextCompat class of this .jar and the class didn't have the static getDrawable(Context) method. Removing this .jar solved my problem.


Post a Comment for "Java.lang.nosuchmethoderror: No Static Method Getdrawable(landroid/content/context;i)landroid/graphics/drawable/drawable;"