I created library project and used some dependencies.Then i build 'aar' file and import it in to a new project as a new module. The issue is dependencies of aar project are not imported in to the new project environment? Do you have any idea?
Asked
Active
Viewed 1,164 times
5
-
did you use the recommend way to import the library? – Nuke Oct 16 '18 at 04:30
-
yes using File->New->New Module->Import AAR package – Dinushi Udeshika Oct 16 '18 at 04:31
-
What you use in Gradle ? (compile or implementation) – Abhay Koradiya Oct 16 '18 at 04:38
-
implementation project(':cui') – Dinushi Udeshika Oct 16 '18 at 04:42
-
NO I mean what use in library's gradle ? – Abhay Koradiya Oct 16 '18 at 04:44
-
used implementation for the both projects – Dinushi Udeshika Oct 16 '18 at 04:49
-
Please post gradle of library. – Abhay Koradiya Oct 16 '18 at 05:03
-
edited the post. sorry i have no permission to preview the image – Dinushi Udeshika Oct 16 '18 at 05:11
-
only res File not found or all class not found ? – Abhay Koradiya Oct 16 '18 at 06:10
-
chek [here](https://github.com/Vigi0303/fat-aar-plugin) - It may be solved your problem. – Abhay Koradiya Oct 16 '18 at 07:11
1 Answers
2
aar module can not exported dependency aar,if you want to use dependency aar in other module you should dependent it in your new module.
for your case,maybe api will solve your problem. The doc about api and implementation check here

aolphn
- 2,950
- 2
- 21
- 30
-
-
No,I didn't find that,but I've tried to export it in my aar module several times like you and I'm failed.Finnally,I created dependencies in new moulde which should included in exported aar module. – aolphn Oct 16 '18 at 05:44
-
Hi,I reedited my post,you can change implementation to api ,that will address your problem.I made a mistake in first time,sorry about that. – aolphn Oct 16 '18 at 06:00
-