Hi I have created one application in android studio adding picasso and volley library It works fine But when i convert the same application in library using apply plugin: 'com.android.library' and add that .aar file in another application the volley gives java.lang.ClassNotFoundException: Didn't find class "com.android.volley.toolbox.JsonObjectRequest
but when volley added again in the new application it works fine why is that? Why do I have to add volley again as I have already added it in the library?
Asked
Active
Viewed 223 times
0

Vojtech Ruzicka
- 16,384
- 15
- 63
- 66

tazz
- 1
- 1
-
share your build.gradle file if possible. – SilentKiller Sep 20 '16 at 11:30
1 Answers
0
In short, you need to declare the dependencies in the library as transitive. See this answer for details.

Community
- 1
- 1

Code-Apprentice
- 81,660
- 23
- 145
- 268