I have downloaded the ar foundation app from a course regarding AR Foundation on Coursera. https://www.coursera.org/learn/handheld-ar/
I have successfully run the app on my phone but my phone does not support ARCore, so I went for the emulator. I followed all the instructions on the ARCore Website. But When I install the apk from the unity project and drag-drop on the emulator it gives me String Parse Error
logcat shows:
failed to install my_arr_app.apk: Failure
[INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries,
res=-113]
Can anyone help how to resolve it or how to test my apps to complete the course successfully? Please guide!
Thank you in advance
See the other answer for the solution
The app is using native libraries compiled for a specific platform. There are multiple different platform types that android supports (armeabi, x86, x86_64, etc.). Depending on the emulator image you are using the app might not include the binaries for your emulator.
You can open the APK in Android Studio (or extract it as a zip) and have a look into the lib folder in the APK. Each subfolder is an architecture name.
Then you can create a new Emulator in the AVD manager and when choosing the system image, select "Other images" and choose one with an ABI which is included in the app.
Example:
The answers from the following question also might provide some detail: INSTALL_FAILED_NO_MATCHING_ABIS when install apk
By the help of #JensV I managed to solve it by choosing the x86 instead of ARMv7.
Go to Edit->ProjectSetting->Player->Configuration->Select x86
Related
I am trying to integrate Boost.Log in a QT/QML project that has to work on Windows, Linux and Android. While Win32 and Linux versions work like a charm, Android is giving me a few headaches.
I was able to build Boost library following instructions at https://github.com/moritz-wundke/Boost-for-Android.
However,
If I link my application statically to boost libraries, I get a bunch of linker errors, complaining that symbols are not found. Error messages are like: "error: undefined reference to 'boost::log::v2_mt_posix::core::get()', I get ~60 of them and I checked many times the file paths
If I link dynamically to boost, I can successfully generate my APK (the relevant .so files are included) but it crashes upon startup, both on a real device and on Android emulator
I'm new to Android development so it's entirely possible that I'm missing some key step here and I'm not really sure on what information may be relevant to provide here. Hope that someone can help.
I tried building with both ndk 20 and 21, Boost 1.70, Android SDK 26.
I plan to use QT 5.12 but did not add any QT code yet. I used QT Creator 4.10.2 (Windows) and 4.11.1 (Linux)
I am trying to run some OpenCV examples on an MDP (mobile development platform) based on the Qualcomm® Snapdragon™ 805 Processor. The platform has no Google Play and it cannot be installed.
I have installed the correct OpenCV manager and the OpenCV binary pack. After trying to run a sample OpenCV app (e.g. the 15 puzzle) I get the following message:
"OpenCV library package was not found! Try to install it?"
Of course, I cannot install it, since there is no Google Play Store. How can I get the OpenCV library package onto the device and am I wrong to think that the OpenCV binary pack is exactly that?
To convert a native Android .apk to a Blackberry .bar does not seem to be a problem.
However, I have an Android .apk (API 15) that I implemented using Xamarin. I am able to convert the file to a .bar file using the BB10 Sideloading Tool, but when I run the app on the Blackberry simulator, I get the error messages:
android_update_LD_LIBRARY_PATH not found; .so dependencies will not work
and later
FATAL EXCEPTION: main java.lang.UnsatisfiedLinkError: Library cannot be found at java.lang.Runtime.loadLibrary(Runtime.java:361)
etc...
I am not really sure what steps can fix this errors.
Is it basically possible to run Xamarin-created .apk-files on Blackberry?
Would it maybe help to turn on the switch "Bundle assemblies into native code" in the Android Build options? For this, I would have to upgrade to Enterprise, but if it helps...
Correct me if I'm wrong, but I'm pretty sure Xamarin works with building your code as a native (as in NDK) library for Android, and a small Java glue to load and run the code from this library.
Two things to note here: the simulator runs a x86 instruction set, when your library is probably built for ARM. Won't work.
For a real device, you'll have to check that every library needed by yours is present on a BB10 device, which is not guaranteed as far as I understand: http://developer.blackberry.com/android/apisupport/android_native_support.html
I have a reasonably large Qt project which I don't want to rewrite in Java for Android. So I downloaded and installed Necessitas SDK and managed to compile the project as an apk file.
So far so good. It also executed successfully in emulator, but then I got stuck. First problem was that Necessitas Qt Creator always produces a "Debug" apk file, even though I set the project config to "Release". The second problem, it allows me to deploy the app to emulator only, but I want to install and test it on a real Android device.
How can I find and copy the necessary Qt libraries manually to the device?
Install Ministro from the Market to get the Qt libraries. Your app will dialog with Ministro to get the needed libraries from the net. See the How to write Qt apps for Android guides for more information.
Necessitas is still alpha, so the libraries are indeed debug ones (to get debug messages), but stripped of the symbols.
Could someone please point to some tutorial on how to setup and build the Google's Contact apps which is under packages/apps/Contact and run it in Android Emulator.
I know it has lot of dependencies including the provider itself which is a separate service., and other libraries from the source folder, but what i'm trying to do is to learn the way Google has designed their contact app and use some of its techniques in my app.
Currently i debug manually !! ^-^.. its very very painful, esp following Intent Calls..
but if i were able to compile and build the Contacts app myself, and run it in emulator, i can add some easy debug messages and recompile and then trace them. Could someone please help me with this.
Thanks in advance
Compiling contacts app nees for Android full source.
establish build environment.
(Ubuntu 64bit, Git 1.7 or later version, JDK6, Python 2.4~2.7 )
get android full source.
( http://source.android.com/ )
full build with entire source.
( http://source.android.com/source/building.html )
if full build success, you can partially build each platform apps.
go to android source root and type in linux command line
# mmm package/apps/Contacts
rooting the Emulator for install system apps.
and set write privileges to '/system/app' in Emulator.
push Contacts.apk into emulator.