I have just started internship in a company, they said i will be working on a android project using qt.I need to join them by next week, in meantime i thought of installing qt on my laptop which has Ubuntu 15.04(64-bit).
I downloaded Android SDK, Android NDK, Ant Executeable.
Here is my android settings in qt.
I created a sample app using New Project -> Qt quick Application,it pasted some sample code for hello world when i tried running it it said
could not find the executable please specify one qt
then i opened my project folder and specified a file having name same as my project name,fortunately it worked.
Now when i run the project it displays hello world but when i try to debug it either by attaching external device or through emulator it displays a pop-up which displays a string "Unknown error".
1.Have i specified the settings correctly?
2.how to get rid of this error and start debugging.
can i do debugging on my device in ubuntu.
I am just a beginner plz provide easily understandable answer.
Related
I'm trying to build an Android app using Kotlin and Anko. When I select "Run" in Android Studio I get the error:
Could not identify launch activity: Default Activity not found
Error while Launching activity
and the app does not start. I get this error with both the emulator and with a real phone.
To try and narrow down the problem I tried a couple of sample Anko projects, including android-anko-sample, and they all exhibit this same broken behavior.
I have other Android projects I've written in Java, and they run without this problem, which suggests that this is somehow a Kotlin or Anko specific issue. I can even switch back and forth between one of my Java apps and the "android-anko-sample" app linked above, and reproduce the problem with android-anko-sample consistently, while my Java app works correctly every time.
I have looked at other questions involving this error message, and the solutions posted were either not applicable or didn't help.
One thing I have noticed that's weird is that when I open AndroidManifest.xml (of any of these Anko apps) in Android Studio the names of the activities are shown in red, as if they are errors. Here's how the one from android-anko-sample looks:
Note that the app does get installed on the phone/emulator, and I can tap on the icon and run it. It just won't automatically start when I select run from Android Studio, which is pretty inconvenient.
How do I fix this issue?
I'm using:
Android Studio 2.1.2
Ubuntu Linux 16.04
Oracle JDK 1.8.0_131-b11
Code is here:
https://github.com/vsouhrada/android-anko-sample
The complete contents of a few of Android Studio's panes are available in this gist:
https://gist.github.com/xenomachina/e8027b385661038c3f020a543493eebf
This was caused by not having the Kotlin plugin installed in Android Studio.
To fix, go to File → Settings → Plugins → Browse Repositories, find "Kotlin", and install it.
I have accidentally formatted the hard drive where I had all of my projects. The project I'm currently working on is completely lost, but I have the app running on my device. I didn't generate an apk, I just ran it using the 'run' option in Android Studio to test as a wrote the code.
Is there a way to retrieve the source code in this case? I have tried extracting the apk from the device (inside \data\app[package name]) and using several decompilers tools available, but none of them show me any of my code.
Thanks in advance.
I am getting started with developing an application for Android using Qt 5.8 and am running into issues running a basic application. When I run a basic application on an Android emulator, the application fails to load and a lot of errors are printed to the Qt console. Text file of errors
Images of Qt Creator, emulator, and errors
I followed tutorials online on getting the Android development environment set up, and as far as I know, I have the SDK, the NDK, Java, and ant all set up correctly.
From "create a project" in Qt, I selected the Qt Quick Control Application, and set the kit for Androidx86 and desktop. I basically kept the application as it came, but added a teal background and two text fields, but didn't change any code.
When I run the program for desktop, it works fine and opens as shown with clickable buttons and typeable text fields. But when I try to deploy the application on any emulated Android application on 7.1, the emulator boots properly but the app that displays is just this.
The error messages that show up in the Qt Designer are and here is a file dump of the whole list of errors that showed up from trying to run the app.
I am unable to figure out what these errors mean, as I installed Qt and the android files according to the documentation but still encountered these errors and was hoping someone would know what the issue was?
Probably related to the service change or similar (QtActivity etc.) Please check the following link. (Bug fixed and resolved) Fix version: 5.7.0 RC
https://bugreports.qt.io/browse/QTBUG-52373
I am developing a mobile app that can print a invoice from Bluetooth printer(Model : VPT801). I received the sample code from manufacturer and when i run it with eclipse IDE it can print the invoice. After export it to android project and ran it using Android development studio. But it was not working when i run with Android development studio.
I found the codes which was getting error as mention below.
Sys.Lib_HandShake();
Sys.Lib_GetVersion(version);
Sys is a class which is included in the third party jar file.
I tried with same mobile phone running Android 4.2.2. by using two IDE
Please help me to solve this problem.
I'm working on a Cordova project for Android using Visual Studio 2015. I can build my project without error and I can deploy it on Ripple.
But when I want to deploy on a real device or on an emulator, I'have always the same error: the specified file was not found. No more information in error list or output (using diagnostic output).
When I try to deploy on the emulator, the emulator receive the application and I can use it but when the app is lauched I have a pop-up from Visual Studio: "the specified file was not found" and I can't debug.
When I try to deploy on a real device, I have directy a pop-up: "there were deployment error. Continue ?" if I click on "yes", I have the popup "the specified file was not found".
I would like to have a solution and an explanation about this error.
Thank you in advance, I can't work with this kind of error except deploying on emulator and don't use debugging...
It seems like you are missing a third party component (such as Android Studio), so Cordova is creating an Android project, but Android is not compiling that project into an Android app. That's why it deploys on Ripple (which just uses the first half of the build) but fails on the second half. I'd make sure that you do have Android home set up (check the path in Tools->Options->Tools for Apache Cordova). Otherwise, feel free to email your question + current project to vscordovatools#microsoft.com. I can take a look at it on my machine.
Linda Zhong, Tools for Apache Cordova PM
Lizhong#microsoft.com