I am new with corona developing.
I am creating a new project and them build as android apk target 2.2.
It will make build successfully bt if i run this build on my device it shows "not installed".
I am using trial version of corona is this make a problem?
Thanks for your valuable time.
When I had a similar problem, it was because the architecture on my device wasn't ARMv7.
The developers behind Corona have made these points regarding Android deployment:
You do not need to install the Android SDK. However, you will need to install the x86 (32-bit) version of the Java 6 Development Kit if you're using Windows. Corona does not support JDK7. See Java Development Kit Setup for details.
The Android build process generates a standard .apk file. You can build and test apps on Android devices without creating a Google developer account, but you will need an account if you wish to publish to the Google Play marketplace. The current price of the program is $25, mandated and managed by Google.
We only support Android devices that run Android 2.2 or higher with an ARMv7 processor. This can create some confusion because ARM processors are identified by both a family and an architecture. Family names do not have a "v" in them. For instance, the ARM7 processor is actually a ARMv3 architecture, and ARM11 is a ARMv6 architecture. See this guide to help identify the various processors.
Source: http://docs.coronalabs.com/guide/distribution/androidBuild/index.html (worth a read if you haven't seen it already)
Download some app to your device like app manager or Es File Explorer(
https://play.google.com/store/apps/details?id=com.estrongs.android.pop&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5lc3Ryb25ncy5hbmRyb2lkLnBvcCJd)
And open that app, select your .apk file, and there u can install it.
Good luck ;)
I find the simplest way is to just attach the .apk file to an e-mail and open the attachment in Gmail on the phone.
You can build for Android using the Trial version of Corona. Just use the default key. (I might have enabled a setting under Apps to allow installing apps from outside Google Play, I don't remember.)
I had to install my app via a adb console with my phone's USB debugging turned on for it to work.
The command was:
[path to adb.exe] install -r [path to apk file]
I've had this problem before so I will share you my experience.
It could be one of two problems:
Your device isn't ARMv7. That means it needs to be 2.2 or higher. I would recommend using Android 4.0 or higher for a test device, that's just my opinion though.
You could have a syntax error or you could be requiring a document that doesn't exist. In some rare instances Corona doesn't detect the error until it's on the device. To see what the error is, run adb logcat.
Let me know if this works for you :)
Related
I made a very simple 2d game for android.
Build was success with 0 errors. I uploaded the .apk file to my drive. From there I downloaded it to my HUAWEI P8 (Android 6.0) old phone.
Everythings works.
I've downloaded it again to a LENOVO (Android 9.0).
I got "App not installed" error with nothing else. I tried several Android emulators. On every one of them I got "App not installed" error. On one of them I got "Your phone is not compatible" beside the other error and that's it.
Things I've tried:
Turning off Play Protect (from Google Play)
Allowing apps from untrusted sources
Cleaning more free space
Setting "Install Location" to Automatic (from Player settings)
Downloading/importing the .apk from somewhere else
Setting Android 9.0 as a Target version
Checking ARMv7 too as a Target architecture
After a long time wondering and playing with the settings I think its working now. Here are some of my options in the Player settings:
Scripting backend: IL2CPP
Api compatibility level: .NET Standard 2.0
Target Architectures: ARMv7, ARM64, x86 (deprecated).
Install location: Automatic
Write Permission: Internal
Beside the things I've written in the question I also checked all three architectures as targets (even the deprecated one). I've connected the tablet with USB in order to use Build and Run option and didn't see any error (when I later changed target architectures a error told me that I should target ARMv7 too) and everything worked as expected.
I later uploaded it to my drive again and installed it from there too.
I've tried & tested in emulators too (I think the deprecated architecture is used).
Hi I had Shared the steps, It will definitely resolve the issue regarding Unity App Not Installed
Check is you bundle identifier is same with previous build
PlayerSettings > Enable build il2cpp Armv7 and 64bit build and donot split the build
Assign the keystore and assign password
Set the player setting SDK Card to Automatic
Make Sure your previous build is assigned with same keystore
Target Api Level should be Equal or greater than previous one
We developped an app for Android system with Intel xdk. Recently a customer tell us that it doesn't work on android 2.3 version. We would like to know how can we run the file apk on a 2.3 device for testing. If someone has some idea to help us we would be extremely grateful. Thanks
Do you have the apk downloaded in your 2.3 version android device?
If not, you could install it sending the apk in an email to the account in your android device, allow installations of apps from unknown sources in your settings in case that you didn't set that option before and follow the steps to install and run the app. Then you can test if the app is able to run in 2.3 version.
Create different AVDs of different OS Versions and test the app in all AVDs.
Otherwise go for genymotion.
Using Intellj-idea I'm trying to debug into the Android source API 17 but when I set breakpoints in the platform source they are being ignored when run. Looking at the breakpoint whilst debugging there is a cross in it with a message stating "no executable code found at line 15,508 in class android.view"
I've tried running against an emulator with API 17 set as well as a phone with Android 4.2.2 but both don't work. I can sort of debug into the methods but the cursor jumps around.
So I'm guessing that there is no debug info as well as some optimisations that have gone on. So my question:
Is there a way I can properly debug the Android Platform from the perspective of my application and set breakpoints that work in it? Maybe a an emulator that has been been built with debug info?
Any help would be appreciated?
Regards
Lee
It depends on what application you are trying to debug: your own application, a system application such as android.process.acore.
To debug platform source running in your own application
The main issue is the line numbers of the platform source you have downloaded on your computer must match what is running on the device. Your best bet will be to debug on Google Nexus device such as the Nexus 5 or Nexus 7 since it should be running a compiled version of the source exactly as it was released by Google which you downloaded with the Android SDK. Just add the sourcepath to the sdk in IntelliJ, attach the debugger and set the breakpoint. Make sure you choose the same API level source as is running on the device. That should do it.
To debug platform source running in a system application
You will need eng build of the Android platform to debug system processes. If you haven't built and installed the Android platform before it is quite a bit of work and requires an unlocked bootloader. Maybe there are prebuilt eng builds of cyanogenmod or something that can be downloaded but I can't find any after some trivial Googling. You may also make an eng build of AOSP yourself and run the emulator on your machine. See Running emulator after building Android from source and the "Choose a target" section on the AOSP site for info on building your own eng build if you are feeling very ambitious.
If I write an application using the Android SDK or NDK, can I simply copy the APK produced onto any Android phone (with the right version of the OS running) and run it? Or do I need to root the phone before apps not bought through a marketplace can run?
The context is that I have the choice of a Galaxy S2 as an upgrade to my iPhone4 and I'd like to start writing my own stuff. I can find plenty of instructions and examples of compiling and running apps in the emulator, but nowhere explicitly states I can run the apps I compile on the S2. I'm worried that apps may need to be signed or authenticated before they can run on it (and other phones) and I'd rather not mess about with the phone too much.
You can download it and run it without root.
You can debug directly on a device even from your development environment.
Android development tools environment (ADT) in eclipse (as well as others) and the correct ADB USB drivers for your phone gives you that nice option. Much faster than using the android emulator too.
In settings you have to allow debug (a simple checkbox), that is all.
No you don't need to root. Just install drivers and SDK. Using eclipse you can directly run on device and debug too
it's also faster than working on emulator
If you get Galaxy S2, then you can install Samsung's own free app, "Kies Air". This allows you to transfer files over wifi from your PC to anywhere that you can see in the phone's file explorer. If you transfer an apk this way, then when you click on it in the phone's file explorer, it will install the app. The app can be signed with a debug key, or a release key.
You don't need root. In order to instal on android phones you simply install the app on the phone through eclipse ADT tool or just through the ADT terminal. Just remember to set the phone to development mode by going into settings -> programs, then allow installing from unknown sources.
Alternatively if you want to install the *.apk on you device download an app from market. Follow this link for guides on both this approach and the SDK/debug approach: http://www.talkandroid.com/guides/beginner/install-apk-files-on-android/
I'm wondering if there's a possibility to have access to any of "developer version of the Android system" as the Android doc says? As you probably know some tools work on developer version only which is AFAIK available exclusively on emulator, which let's say doesn't work well.
If there would be such, I'd rather install it on one of my devices and could debug it there.
Would it be legal in that case?
If you have one of the Google phone devices you can build your own type of the Android OS for your needs without problem. Here you can find instructions how to do this and how to upload your built OS on your device. For instance, to build development version for Galaxy Nexus you should run configuration command:
lunch full_maguro-eng