This repository has been archived by the owner on Mar 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 51
Library can not use R? #17
Comments
This plugin just copy library's jar to libs dir and merge asset、res etc;So the aarLib's R.java is not generated,then your error coming |
Did you find workaround? @WayLoCode |
@WayLoCode did you find any solution for this? |
I got the same issue. Have you found any solutions? friend |
there is no solution for this problem, because the gradle plugin merge the resource and generate the R.java, so we can not resolve this problem |
Thanks again , got it friend @songnick |
Any workaround?? |
we can fix this problem by two ways:
to
etc. The second way is recommended, because it won't increase aar's file size. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
java.lang.NoClassDefFoundError: Failed resolution of: Lme/vigi/fataar/demo/aarLib/R$layout;
at me.vigi.fataar.demo.aarLib.AarLibActivity.onCreate(AarLibActivity.java:17)
The text was updated successfully, but these errors were encountered: