I'm using VS2012 and I'm trying to build my application for Android, but APK file is not created when I build the application.
I'm doing this process using the Marmalade Hub and the "Package, Install and Run" option. Build process works fine and I get no errores, but when I process on the "Package, Install and Run" button I get the following message:
Please Build before deploying. To build, click "Build" or click "Open in IDE" and build GCC ARM Debug.
The following picture shows this process:
Picture
Please help, I cannot advance on my project because of this situation!
Thanks!
You're doing it wrong. The build process has to be in the IDE, not in the HUB. Open the project in IDE(VS2012 in your case) by either clicking Open in IDE button in Hub or double clicking the Mkb file. Build and run your code in x86 first to create the necessary bin files for groups and then build it using GCC release compiler. After that you can either run it using GCC compiler to open the deploy tool(default action for VS2010 and VS2012 desktop version) or running deploy tool from external tools (VS2012 for windows phone) or by running the deploy tool target (in XCode) directly. You can instead use package, install and run button in the hub if you've already filled the neccessary info deploy tool asked you.
Honestly I don't have trust on Hub and like to do the development using old school method with IDE and deploy tool. It always works.
I found the problem on the HUB that wasn't allowing me to run the "Package, Install and Run" process. For that matter, the actual problem was in the Package part of the process.
For some reason, when you use VS2012 to develop and you haven't installed Windows Phone for VS2012, the default option for the HUB is to check for "Windows Phone 8 C++ Development" tool installation and if not present, block Package build for Android. I also note that I'm using Windows 7, so I cannot install Windows Phone for 2012 module.
The solution I found was to simply configure Marmalade Hub correctly:
Open Marmalade Hub.
Press on Dependency Checker.
Depency Checker should start with the IDE's and Compilers tab opened. If not, open IDE's and Compilers tab.
Look for Windows Phone 8 C++ Development on the tab.
Choose "Work Without IDE" on the options.
Try to build the project again.
Best!
Related
I'm trying to build a KMM project using Android Studio. I can see two separate configurations as well, each for AndroidApp and iOSApp. But the iOSApp configuration doesn't have an Execution target. Neither does it show any simulators in the dropdown.
I do have Xcode installed and have run other iOS apps successfully in the iPhone Simulator.
p.s. I'm on M1 mac
once you run the project you'll see a iosApp.xcodeproj file being generated .. make sure your android studio pane is in project mode.
Once a successful build is done you'll be able to open this .xcodeproj file from within xcode
I have not been able to do that as well. If there is a build failure the reason is it is not finding the common folder. To do that open the terminal and run gradlew tasks.There
should be a task allowing you to ready the shared folder with xcode
First select the device in which device you want to use in simulator then find build option and then click on it, your simulator automatically will popup on the screen
I have been trying to deploy a simple Qt application to android but with no luck. Details are as follows
Qt Version : Qt 5.1.0 for Android (Windows 32-bit) downloaded from here
Qt Creator version : Qt Creator 2.7.2
I have set the following options in Qt Creator
Android configurations
Android SDK location : C:\adt-bundle-windows-x86-20130717\adt-bundle-windows-x86-20130717\sdk
Android NDK location : C:\android-ndk-r8e
Ant location : C:\Program Files\Java\jdk1.7.0_25
AVD name : AndroidAVD (API Level 17,armeabi-v7a)
Kit Configuration
Name of the kit : Android for arm(GCC 4.4.3,Qt 5.1.0)(default)
Device type : Android
Device : Run on Android
Sysroot : Its empty
Compiler : GCC (arm 4.4.3 )
Android GDB Server : C:\android-ndk-r8e\prebuilt\android-arm\gdbserver
Debugger : C:\android-ndk-r8e\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows\bin\arm-linux-androideabi-gdb.exe
Qt Version : 5.1.0 (android_armv7)(C:\Qt\Qt5.1.0\5.1.0\android_armv7\bin\qmake.exe)
Deploy configuration of the Kit(for both Release and Debug) :
Deploy local Qt libraries and Use Local Qt libraries option is checked
OS : Windows 7 64 bit
The Problem
When I try to build,everything builds fine. I get libTheTestApp.so in my build directory.
Also the project directory now contains a folder named "android" containing the manifest file and some other files.
When I try to Run the app, the emulator starts but I can't find my app. If I close my
emulator and return to Qt Creator I get the following error
Please wait, searching for a suitable device for target:android-17.
Error while building/deploying project TheTestApp (kit: Android for arm (GCC 4.4.3, Qt 5.1.0))
When executing step 'Deploy to Android device'
If I do "adb devices" while the emulator is running, I get the id of the running emulator
Also I tried searching the internet before posting this question here. I found this link.
My question is how do I deploy a Qt5 application to an android device? Are there any links
which say how to do it? I am asking this because I have followed the instructions provided
in Qt5ForAndroidBuilding link while building the app.
Thanks for your time.
I was successfully able to deploy a simple QT application to my android device.
From what I understand ,Qt creator first tries to deploy the app to a device if it finds one. If no device is found, it tries to launch an AVD and deploys the application to the emulator.
"Please wait, searching for a suitable device for target:android-17."
Try targeting a lower api level by changing it in Projects->Selected Toolkit -> Run -> Package Configuartion -> Manifest
And also , make sure that the Ant location points to InstallLocation\ant\bin\ant.bat
Video Build and deploy Qt apps to Android using Qt 5.1 on Windows http://www.youtube.com/watch?v=_nkhlhBwkjk.
You did not mention that whether you specified jdk location in Qt Creator or not.
for ant location, please specify the path to bin/ant.bat file from ant directory.
For people who will see this post in the future:
Do not launch avd from Qt Creator, first run the avd from android sdk manager
do not create your own avd, use the existing ones instead, as follows
go to android sdk folder, open android SDK Manager > tools > Manage AVDs...
there are two tabs at the top, go to "Device Definition" tab
select any one avd and click on "Create AVD"
from new window that comes up, select target api level, cpu/abi and check snapshot checkBox at the bottom of the window and press "ok" button.
new window comes up with the specifications of created avd, click ok
now you have a valid avd. Select it and press "start" button.
wait until the avd is lauched, unlock it and run you project.
For a good documentation on deploying to Android device:
http://qt-project.org/doc/qtcreator-2.8/creator-deploying-android.html
http://qt-project.org/doc/qt-5.1/qtdoc/android-support.html
I had the same problem. To solve it I configured the app as it is presented in the links.
Be careful to start the device emulator from Android sdk->AVD Manager NOT from Qt Creator->AVD Manager.
And check to see if ant is correctly installed by run->cmd->ant -version.
I've seen some questions about this, but none with real answers nor details. Here is my case:
I have an application that uses Google Maps API v2 which works just fine. Recently I found out that I cannot get it installed on this not ARM-based device.
In order to nail down the problem I'm working with Google Maps samples provided with the SDK (\sdk\extras\google\google_play_services\samples)
which gives me the same error message at install time:
Failure [INSTALL_FAILED_CPU_ABI_INCOMPATIBLE]
I get this message only on a real device using Intellij (12.1.1)
It works fine using both Eclipse on real device and using Intellij on the Emulator configured with CPU: Intel Atom (x86)
Any help would be highly appreciated!
UPDATE
As expected, same thing happens with Android Studio
By default, IntelliJ assumes that the libs folder in the root of an Android module contains native libraries, even if it just holds jars. Thus, it packages the APK making it look like these are native libraries. I just had a similar issue where my application had no native code and would work on the default emulator, but got the ABI warning when installing on the Genymotion emulator. To fix this, tell IntelliJ (or Android Studio) that your libraries are not native code:
Open File -> Project Structure.
Click Modules on the left side of the window.
For each Android module, expand the dropdown and select the Android subitem.
In the Structure tab on the right, delete contents of the Native libs directory field (you can leave it blank).
Once you've done this for each Android module in the project and applied the changes, you may need to rebuild your project for the changes to take place by choosing Build -> Rebuild Project from IntelliJ's global menu.
Latest Genymotion wont support ARM binary. If you have native code compiled for ARM, you can use the Genymotion-ARM-Translation. Just drag and drop this file to Genymotion home folder and reboot .
Reference.
http://forum.xda-developers.com/showthread.php?t=2528952.
In android studio, Fix this issue:
1 Download Genymotion-ARM-Translation_v1.1.zip
download url:
https://forum.xda-developers.com/attachment.php?s=9f1870536cb530a1346794b6ef629e90&attachmentid=2680937&d=1397258016
2 Drag the zip file into your running virtual device and click ok
3 restart Genymotion virtual device
Lately i've had issues with ADT14/15 and their eclipse integration for debugging/building/cleaning android apps. However using ant and a build.xml file is working flawlessly.
Does anyone have a suggestion for how i might control the eclipse debugger from ant? Ideally i'd like to add a custom ant task that i can launch from within eclipse (ant build) that would initiate a debug session between eclipse and adb so i can step through the code using eclipse without relying on adt.
I've found that even though ADT 14/15/16 are unable to build and debug my project because of various errors like.. unable to find blah.apk etc. If you use ant to build just make sure you build a debug version and install it to your phone. Then run DDMS from within eclipse. Select your process and click the green bug icon. This will enable debugging and allow step thru of your code in eclipse.
There is a crash bug in the aapt tool that happens till R12 (checked).
i'll give more details later, but for my question:
The bug happens on windows system, not on linux, it's not related to eclipse, i tried from the command line as well.
I want to debug the appt process under windows, will adding -g to the building fags in the android build tree (i'm using the trunk) solve the problem ? i want to see where the crash is and see if i can fix it but assembly code wont help me much and it doesn't reproduce on linux machines so i can't debug it in it's natural env.
(the tools are compiled for windows under linux using mingw32 library for linux, using sdk product with '_sdk_win' ).
Regardig the bug itself:
open an Android project under eclipse and call it 'a'
open the 'a' properties and check the 'Is Library' check box.
open another Android project and name it 'b'.
open it's properties and add 'a' as an android library it uses.
open the android plugin preferences and change the build from silent to verbose
clean both projects.
on linux everything is neat, on windows it crashes after the line:'baseFile zd has flavor (null)' which according to linux should be:'baseFile 0 has flavor ,,,,,,,,,,,hdpi,,,,,,,'
most chances null pointer exception occurs here, the question is why only on windows ?
The bug is gone from the next version (compiled from the trunk).