I've created an app in Flash Builder "Burrito". When I run the application there are no project warnings or errors. The .apk was compiled successfully. The emulator is running Andorid 2.2. However, when I push the .apk to the emulator I get "Invalid Apk" error.
I tried installing it into Galaxy Phone (Android 2.2) , de time i got "Parse error "
any1 had the same problem resolved ?
The .apk file generated by flashbuilder will not run successfully on the emulator. You have to generate an "emulator apk" using the adt.bat located in the bin directory of your AirSDK.
copy your files (appName.swf, appName-app.xml, cert_name.p12) to the bin directory and run the following command:
adt -package -target apk-emulator -storetype pkcs12 -keystore cert_name.p12 appName.apk appName-app.xml appName.swf
You can find a more detailed explanation here
It seems to be fixed in current build of the Flash Builder Burrito on labs.adobe.com.
For me, all my projects are working fine in the android/blackberry emulator, as well as on the android devices without setting specific options in the projects... or even with different compile-options.
Also the signing process now comes with a suitable wizard.
I've no experience in coding with Flash Builder, but I heard that Flash Builder will wrap your classes in a specific apk. You'll find there is a "swf" file in the folder named "asset", as a matter of fact, Flash Builder is trying to release your application as its own flash format. so if you want to have your application running, the AIR runtime on the smartphone is must.
if you're learning android programing, it's much better to use eclipse and google adt as your develop environment, like most of us do :-)
Related
I'm trying to run a simple hello world app as a start of python in android,im an intermediate in python,never tried python in android but i want to run it in my phone, but i've tried, researched, i've installed kivy, and all its requirements in its original website, my main error is down below, im on windows 10, and i try this apt,sudo and dpkg thing none of them are recognized as an internal or external command(i do these in command prompt, should i not?),i have the buildozer.spec file in lib but couldnt find a way to edit, i've also tried other ways im really stuck here, my android version is 5.0.1 if that helps, please help im stuck.
C:\Program Files\Python37\Lib>buildozer android debug deploy run
I Check configuration tokens
[91m[1mBuildozer is running as root![0m
[91mThis is [1mnot[0m [91mrecommended, and may lead to problems
later.[0m
Are you sure you want to continue [y/n]? y
Unknown command/target android_old
You should download the kivy virtual machine at https://kivy.org/#download (It's at the bottom). Import the machine into virtualbox. If you don't have virtualbox installed, you can download it at https://www.virtualbox.org/wiki/Downloads. Get your application files into the virtual machine, and run buildozer init in your project directory. Edit the buildozer.spec file, and run buildozer -v android debug.
Worked for me. Hopes this helps. :)
I created a basic Android app as an Internship. Created its APK and tried to run on my mobile by connecting it to the Laptop by USB cable and used as an emulator, it's working perfectly. My Android OS version is Oreo, I tried the same to do on Lollypop and still it's getting executed.
The problem arrives when I am sending that APK via e-mail and trying to directly install on the device, it's giving me this error
There was Problem in Parsing the Package
I don't know what is happening as it is getting executed directly from Android Studio.I kept minimum SDK as 15.
Please help me out.
Here is what you need to do before installing.
Android Unsigned App not able to install on device
And I hope answers here do the help too.
Cannot install signed apk to device manually, got error "App not installed"
Try this:
Build --> Clean Project
Build --> Rebuild Project
Build --> Build APK(s)
Apk Dir: Project Dir/app/build/outputs/apk/debug/xxx.apk
or check your app name length.
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
I need to test my android phonegap app. I have the APK file and have tried to get some sort of android emulator running on my mac with no luck. i just need to test the app for android but cant get it to work. i have the android sdk manager installed but cant find the right commands for it to run an apk file in x location.
the phonegap emulator doesnt seem to work for apk files, by the looks of it, it runs html, css, js files on an iphone size screen. unless im doing something wrong and it can work apk files.
Any help would be great.
you can download android studio and the Android SDK, run the emulator and send the apk to your email, in the emulator accessing your mail and download the apk, install it and test ...
I'm building my apk using Buildozer in Ubuntu. But I am more comfortable using BlueStacks in Windows for the testing purpose. My app crashes after it starts with no apparent signals. How can I debug it using BlueStacks?
There's a debug tool with file name: HD-Adb.exe in Program Files (Program Files (x86) in Win64) path of BlueStacks. When you run this tool, you could see all what happens behind the android emulator. It's easy to debug your app then. To run the tool open command line in Windows and type the following lines:
> cd "c:\Program Files (x86)\BlueStacks"
c:\Program Files (x86)\BlueStacks>HD-Adb.exe logcat
I really had hard time trying android sdk emulator and other things. But this works great! Enjoy debugging.