I want to use OpenCV library in my android app. I have downloaded OpenCV 2.4.9 and I have performed all the steps mentioned in the tutorial I followed, error was
opencv.android....cannot be resolved
When I searched for this I came to know that I should include opencv_library-2.4.9.jar file. But opencv_library-2.4.9.jar was not present in the file I have downloaded. But then, I have added opencv_library-2.4.3.jar to the project and I am not able to find the 2.4.9.jar file. Can anyone help me in solving the problem?
Related
I am following this tutorial:
https://developer.android.com/google/play/billing/billing_integrate.html#billing-permission
No InAppBillingActivity file is generating. I'm not sure why. I checked to make sure everything is placed correctly but no luck. Here is what my folder structure looks like:
Click this for picture
Now I know there are similar questions like this but none of them were able to solve my problem. I have already imported googles billing library as well. No file generates when I run / build the app.
The problem is that the docs are not very accurate in specifying where it is that you will find the java file that should be in the gen folder. I had faced the same problem and had broken my head over it, until I found that the .java file was infact generated and it was in the path :
\app\build\generated\source\aidl\debug\com\android\vending\billing\IInAppBillingService.java
Its not a headache issue and your code runs smoothly itself without any interventions required. Hope this helps!
In android studio double click on your package name:
click in New and then on AIDL
Hope it helps
Its usually generated but not put where the tutorial tells you. If you do a Ctrl+N and type in the class name in intelliJ you may be able to find it
Trying to run the Android Crossexample app that comes with the Low-Latency-Android-Audio-iOS-Audio-Engine from superpowered (https://github.com/superpoweredSDK/Low-Latency-Android-Audio-iOS-Audio-Engine/tree/master/Android/CrossExample/app/src/main/java/com/superpowered/crossexample).
I'm getting: SuperpoweredAdvancedAudioPlayer.h: No such file or directory.
Based on #Stacks13 suggestion, I'm wondering if my local.properties file needs something more. Here's what it's got now:
ndk.dir=/Users/mh/android-ndk-r12b
sdk.dir=/Users/mh/phonegap/android-sdk/adt-bundle-mac-x86_64-20131030/sdk
I'm new to Android Studio and Superpowered and would appreciate suggestions as to how to resolve this.
The solution offered by Даниил Дедов worked for me. However, it brings up two questions:
1) I notice the local.properties file says at the top:
## This file is automatically generated by Android Studio.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
So it seems wrong that editing it is effective.
2) Can anyone tell me why superpowered.dir is gray? (See screen shot below.)
I hope this will help you.
Add a path to SuperpoweredSDK\Superpowered directory in local.properties:
superpowered.dir=C\:\\SuperpoweredSDK\\Superpowered
The instructions are available here -
https://github.com/superpoweredSDK/Low-Latency-Android-Audio-iOS-Audio-Engine
Just scroll down to README.md
I use JavaCV 1.1. I have added jar files (javacv.jar, javacpp.jar and opencv.jar) and *.so libraries to my project in Android Studio. I succesfully build and run my app on Android 5.1 phone, but when i try use functions, that used OpenCV i get error:
java.lang.UnsatisfiedLinkError:dalvik.system.PathClassLoader[DexPathList[[zipfile"/data/app/com.example.dogan.ligntningshower-/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]] couldn't find "libopencv_core.so"
I try to add
static {
System.loadLibrary("opencv_core");
System.loadLibrary("jniopencv_core");
}
but it's no work. How to fix it?
I just add *.so libs to folder /app/src/main/jniLibs/armeabi and now all works fine!
if someone still looking for the answer, first you should check if you added correct files to jniLibs folders. heres a complete tutorial :
A Beginner’s Guide to Setting up OpenCV Android Library on Android Studio
second, if .os files are at their places in each and every folder then you should only change the names to the name that is showing up in the compiler error.
in my case the names were libopencv_java3.so and yet the compiler was saying couldn't find "libopencv_java343.so" . after changing the name to libopencv_java343.so it worked.
I am following all the instructions followed on the getting started Dropbox page but, I get a red mark on AndroidAuthSession, and AppKeyPair and, when i try to import them using:
import com.dropbox.client2.android.AndroidAuthSession;
import com.dropbox.client2.session.AppKeyPair;
I get a "symbol not found" on AndroidAuthSession and Session.
I have imported all the library files: Libs/dropbox-sync-sdk-android.jar and, placed the appropriate .so files: app/src/main/jniLibs/*
which were found in the sdk file download from their site. Could someone help resolve this?
Dropbox provides two different Android SDKs with different capabilities and different classes. The code you have is for the Android Core SDK:
https://www.dropbox.com/developers/core/sdks/android
However, the files you mention, dropbox-sync-sdk-android.jar and the .so files, are from the Sync SDK:
https://www.dropbox.com/developers/sync/sdks/android
If you did mean to use the Core SDK, install that instead, from the first link above. Or, if you did mean to use the Sync SDK, the tutorial is here:
https://www.dropbox.com/developers/sync/start/android
I'm currently facing this issue when I add ActionBar-PullToRefresh library in Eclipse. The error I get is The Type R is already defined.
Steps how I added the library:
Got all files from git.
Since I'm targeting Android 2.3.* I need appcompat library too. So I've imported actionbarcompat from the extras folder.
Next I imported the library. The library is dependent on SmoothProgressBar, so I imported that too.
The actionbarcompat which I imported in step 2 needed the library (Step 3) and support-v7-appcompat library. I added both as dependency.
Next in My Project I added actionbarcompat as a dependency and cleaned project.
This is when I started getting the error. In the gen folder I've the R.java for the following libraries:
android.support.v7.appcompat
fr.castorflex.android.smoothprogressbar
uk.co.senab.actionbarpulltorefresh.extras.actionbarcompat
uk.co.senab.actionbarpulltorefresh.library
I'm facing the error in R.java of uk.co.senab.actionbarpulltorefresh.library. Did I go wrong in adding any of the libraries?
P.S: I can resolve this error by disabling Java Builder but by doing that I'm getting a new problem for which I've raised another question Here (I asked that question first, then one of the members asked me to raise question for this issue as well).
Any help is appreciated!
this error seems to appear because u might be building a library more than once , check this SO Answer I hope this will help