-2

I exported the project from Eclipse. Then built the project. There were 4 folders.

There were 4 folders

Then from the documentation and Google, I realized that I need to do something with the aar files. But how to build an APK I do not understand!

Please explain what I need to do to build APK!

What to do with these files to build the APK.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129

2 Answers2

1

You can import your library-release.aar as a module :

Go into File->New->New module : choose import new .AAR package

enter image description here

Then point to your library-release.aar.

After that go into :

File -> Project Structure -> app -> Dependencies -> press the bottom "+" -> choose module dependency and choose your library

enter image description here

You should have a compile project('library-release') added to your main build.gradle.

Ahmed Abidi
  • 1,047
  • 12
  • 24
0

You need to add them into your project in order to successfully build .apk file of project.

See third answer on this link: How to manually include external aar package using new Gradle Android Build System

Community
  • 1
  • 1
Najeeb Idrees
  • 453
  • 6
  • 15