Two years ago I developed a Qt4 Android app using Ministro and it worked perfectly in that time. Right now I am porting the same code into Qt5. After updating several files I could compile and create the APK file in a pretty clean way.
Nevertheless, when I try to deploy the app into my tablet, it crashes showing these two error messages:
No implementation found for int[] org.qtproject.qt5.android.ExtractStyle.extractNativeChunkInfo()
And:
E/libEGL (11187): cache file failed CRC check
These are my settings:
QtCreator with Qt 5.5.1
Android Studio (Android 5.0.1 - API Level 21)
Android NDK (r10e)
Ant (1.9.6)
JDK (1.8.0_73)
Note: I tried to deploy my app from a virtual android device (using API 23) and I got the same result.
Finally I could solve the problem in a very strange way: I removed all the Android references in my code, including the android manifest.
In other words, I transformed my app into a "desktop" solution. Then, from QtCreator I made the deployment pointing to android and everything worked in a pretty clean way. I wonder how Qt solutions have evolved as an actual resource for mobile development in just few years.
Related
I will try to explain my problem.
For two days I have been struggling with errors popping up during the process of building an android application.
I need to make an Android project for the Structure Core device, the manufacturer has put on his website a sample program and environment for which the scanner works, which I have uploaded to my cloud:
https://1drv.ms/u/s!AoHG6AtGqj2_g0eyFYMyh2uUNJUQ?e=aBpG1T
It's all about the build process itself which will allow me to open this project in Android Studio.
I do everything as in the instructions, but after executing the instructions, I get such an error and I have no idea what caused it. After installing ndk-bundle via SDK Manager, I had an ndk folder in AppData / Local / Android / Sdk, and the console asked for the ndk-bundle folder, so I just changed the name, I don't know if it was a problem, although I didn't find another solution.
At the moment I am working on a Windows generated environment and works good but i have to get an acces to Android App.
Ask if you could try to compile it on your own and possibly send me your ndk-bundle file or tell me what's wrong here.
Stucture Core notes that it is best to use ndk 21.01 and jdk11.
I tried to do this with a lot variation of java version.
I have made a simple app. It was running fine. I had never used git. So, I watched a simple tutorial on youtube and installed the git and have made an account on Github. And also have added the account on the android studio and made the initial commit. Just after that, an error is showing in (ExampleInstrumentedTest.java)... and when I try to run the app. it builds without error but fails to install in my android device.
I searched for the solution on google. And find that disabling the instant run can solve this. but in the latest version of the android studio. instant run feature is not used.here is the screenshot and here is the screenshot for dependencies
Edit: now I have found out that it is running on other android devices but not on my android device. I think this problem arose after I unrooted my android device.
Just close the project and import it same.Its work for me.
File > New > Import Project > your project
Go to Build >Clean Project followed by Rebuild Project.
If it works then ok, otherwise uncommit git changes and then rebuild Project. It will work.
It was not installing the app on my device since I had unrooted my phone. So, I rooted the phone again and now the problem is solved.
I'm launching a game on Android device and getting this error. I`m using up to date Android version, also libgdx.
The library 'jinput-platform-2.0.5-natives-linux.jar' contains native libraries that will not run on the device.
The following libraries were found:
libjinput-linux.so
libjinput-linux64.so
Please help me understand what may cause the problem.
*.so files are native assemblies that are built for a particular architecture. If those *.so files were not built for android (and it seems as if they are not given the error) they will not work.
If there isn't a version for android already built, you can try to write an android version. This other SO question may be of assistance.
I have problem when trying to sign my application in release mode from over two/three days now. I've tried everything which I find as information in internet/stackoverflow and nothing worked for me.
I did not have problem with building debug version and running on device. The only problem I get is only when I try to sign my application on release mode and I get this error message. “Android library project cannot be exported” and I noticed that this happen when I added “google-play-services.jar” to my project android library for adMob.
Instead of using the Google Play Services jar as dependency, add the Google Play Services library project in your application. Instructions for this can be found at http://developer.android.com/google/play-services/setup.html#Setup
I'm currently working with Aldebaran-Robotics' NAO (v3.3) and I was wondering if I can use the jNAOqi-SDK within Android to control the robot from a phone or tablet.
Using the SDK with basic java in Eclipse was pretty simple as described in this tutorial, so I tried to do this in ADT Eclipse. I imported the *.jar-file and placed the precompiled libjnaoqi.so from the package in libs/armeabi and libs/armeabi-v7a, but calling System.loadLibrary("jnaoqi") or System.loadLibrary("<jnaoqi>") resulted in the following error at runtime:
I/dalvikvm(2019): Unable to dlopen(/data/data/com.example.hellonao/lib/libjnaoqi.so): Cannot load library: link_image[1995]: failed to link libjnaoqi.so
I checked the filesystem, but the file was in the lib folder as expected, so I guess it has to be a problem with the library itself.
It's just a shot in the dark but do I have to recompile the library using ndk and naoqi?
I quickly abandoned my project but Aldebaran was busy in the meantime. I recently found a thread about it in the Aldebaran community (login required), where two employees (Nicolas Rigaud and Erwan Pinault) mention upcoming Android support.
nrigaud:
there will be a better Java SDK on our next software version. Meanwhile, it's true that it's not that easy to do Java on the robot
epinault:
In the next SDK you will have library (jar/so) for android