chargeple.blogg.se

Build gradle in android studio
Build gradle in android studio











build gradle in android studio

Sync your project with Gradle and it should looks like this Now create a adle file in the opencv directory with the following contents apply plugin: 'android-library'Ĭlasspath ':gradle:0.9.+'Įdit your adle file in your application’s main directory and add this line: include ':libraries:opencv' Now copy the complete opencv directory from the SDK into the libraries folder you just created. Go to the location where you have SDK "\OpenCV-2.4.8-android-sdk\sdk" here you will find the java folder, rename it to opencv.

build gradle in android studio

For example, if your project is OpenCVExamples, you would create a OpenCVExamples/libraries folder. Follow the below steps to add Open CV in your project as library.Ĭreate a libraries folder underneath your project main directory. You can do this very easily in Android Studio.













Build gradle in android studio