问题
I am working on openCV, and whenever i run code it gives me package manager is not installed, So how can i installed this through my application.Is it compulsory to download it from play store or we can installed it automatically in device. please help me. thanks in advance.
回答1:
You need to use static initialization to include all OpenCV binaries in the apk. Please refer this documentation: Application Development with Static Initialization
回答2:
1- after you download Opencv library from this site:
http://sourceforge.net/projects/opencvlibrary/files/opencv-android/
2- open apk folder, there are some opencv manager package.
3- select one that suitable for your device and install it.
Important Note: if the package (the apk file) you select is not suitable for your device you will get opencv library package was not found
.
回答3:
you can also run :
adb install OpenCV_***_Manager_***.apk
from the shell locally
回答4:
You did not copy the contents of libs folder which is inside the native folder
After downloading and unzipping the OpenCv release and after importing the module in the android studio project (by File > New > Import Modules and choosing the java folder inside the unzipped sdk) you also have to go to.
Opencv-android-sdk > sdk > native > libs
and copy the entire the contents
Then go to your android project and inside the app folder you have to make a new folder by the name of jniLibs and copy the contents there followed by a Rebuild Project
来源:https://stackoverflow.com/questions/22784875/opencv-manager-package-was-not-found-how-install-automatcally