I have added a jar file to libs folder. My code is:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.0.1'
}
But, the editor still errors that the package isn't on right there. I believe, this should be one of the easiest things to do!
Update:
Error:error reading C:\Users\Downloads\locker\app\libs\my.jar; error in opening zip file network connection timeout.) <a href="syncProject">Re-download dependencies and sync project (requires network)</a> <a href="syncProject">Re-download dependencies and sync project (requires network)</a> –
I was able to open jar file with winRAR no problem. Why is gradle reporting this as a zip anyway? It appears it cannot open it. What else can I do?