Joolah Joolah - 2 years ago 228
Android Question

Adcolony with Android Studio

I have tried to include

file into my libs folder. I can initiate the SKD okay. But when I try to compile the app, I get an error:

Error:Execution failed for task ':app:dexDebug'. org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2

If I delete the
, it compiles fine.

Any advice?
Thank you

Answer Source

You can add *.jar file using Android studio.

In the project right click

-> new -> module
-> import jar/AAR package
-> import select the jar file to import
-> click ok -> done

See the screenshots here

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download