Reputation: 25
I have the next problem. To make my app workable on Google Play I have to put folder called "libs" with some libraries into "build" folder (/app/build/) but gradle clean this directory before making project. So, errors are caused. Please, say me what I have to do to forbid gradle clean this path /app/build/. Write code I need please :)
Upvotes: 1
Views: 52
Reputation: 1006944
Step #1: Create app/libs/
, if that directory does not already exist
Step #2: Put those JARs in app/libs/
Step #3: Add compile fileTree(dir: 'libs', include: ['*.jar'])
to the dependencies
closure of your app/build.gradle
file, if it is not already in there
Step #4: Stop messing with app/build/
Step #5: Ship your app
Upvotes: 1