I did the same! I'm not sure how this works. But it looks like Android Studio uses source-only libraries to find libraries, and then the IDE uses Gradle as an external build tool.
So, I created the libs directory in my project and moved the *.jar files there. I added library files ( *.jar ) depending on the project. How can I use the org.andegine package in my project sources, but I still had a bug, so I added dependencies to build.gradle as build.gradle .
dependencies { compile 'com.android.support:support-v4:18.0.0' //compile files('libs/andengine.jar') // for single file compile fileTree(dir: 'libs', include: '*.jar') // for all files in directory }
source share