Initialization problems, Android APK wont Install
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- VIP Livecode Opensource Backer
- Posts: 366
- Joined: Mon Jun 10, 2013 1:32 pm
Initialization problems, Android APK wont Install
Hi,
Ive been using the community edition for the last few weeks - main problem couldn't get the android emulator to stop crashing/hanging , so I left it and "played" with the system as is on windows.
I bought an addon that needed the commercial edition - without knowing that that was the case - as mobgui worked with the community.
Anyway decided to get the android working - Thought it was my machine/windows so restored machine from scratch - still no joy on the community edition. Created an XP virtualbox - still no joy.
Installed version 7 and version 8 Javas SDKs and ADT (multiple times) on both XP and 7 Still no Joy
Although the emulator loaded and ran under windows 7 with version 8 of the JDK - the apk would not install (btw the emulator takes nearly 2 minutes if not more to be useable on an I5 with 6G of ram)
(I've left out about 20 or so installations/removals etc etc - Ive lost count.
I decided to install commercial version today. Gave an error on running - fail to initialize development environment.
REmoved all community editions - that was a game as well . Still get the cant initialize development environment when I try to activate license.
The ide comes up but the plugin settings page does not show when you click - no error nothing.
Installed and uninstalled a few times removing other programs just in case - Antivirus for 1 - even though it was switched off - I had a problem years ago with freepascal , the antivirus had to be removed not switched off to work.
Anyway still no joy.
Go into XP sp3 virtualbox - remove all community editions - install commercial - same problem.
I have checked the forums - others have had the same problem before even in 2010.
I'm losing the will l to live!
Does anybody have a real fix for this - remember Ive reformatted my machine, ive even got XPin a virtualbox.
Other than creating another virtualbox with windows 7 and no other programs other than the jdk, android and livecode I cant see how much cleaner a machine can be.
Thats what Im going to try - in the meantime
Lagi
ps (i left out a lot - this is the abridged version)
pps sorry for the less than coherent language - it's 4am and i'm still up trying to get this to work
Ive been using the community edition for the last few weeks - main problem couldn't get the android emulator to stop crashing/hanging , so I left it and "played" with the system as is on windows.
I bought an addon that needed the commercial edition - without knowing that that was the case - as mobgui worked with the community.
Anyway decided to get the android working - Thought it was my machine/windows so restored machine from scratch - still no joy on the community edition. Created an XP virtualbox - still no joy.
Installed version 7 and version 8 Javas SDKs and ADT (multiple times) on both XP and 7 Still no Joy
Although the emulator loaded and ran under windows 7 with version 8 of the JDK - the apk would not install (btw the emulator takes nearly 2 minutes if not more to be useable on an I5 with 6G of ram)
(I've left out about 20 or so installations/removals etc etc - Ive lost count.
I decided to install commercial version today. Gave an error on running - fail to initialize development environment.
REmoved all community editions - that was a game as well . Still get the cant initialize development environment when I try to activate license.
The ide comes up but the plugin settings page does not show when you click - no error nothing.
Installed and uninstalled a few times removing other programs just in case - Antivirus for 1 - even though it was switched off - I had a problem years ago with freepascal , the antivirus had to be removed not switched off to work.
Anyway still no joy.
Go into XP sp3 virtualbox - remove all community editions - install commercial - same problem.
I have checked the forums - others have had the same problem before even in 2010.
I'm losing the will l to live!
Does anybody have a real fix for this - remember Ive reformatted my machine, ive even got XPin a virtualbox.
Other than creating another virtualbox with windows 7 and no other programs other than the jdk, android and livecode I cant see how much cleaner a machine can be.
Thats what Im going to try - in the meantime
Lagi
ps (i left out a lot - this is the abridged version)
pps sorry for the less than coherent language - it's 4am and i'm still up trying to get this to work
-
- VIP Livecode Opensource Backer
- Posts: 366
- Joined: Mon Jun 10, 2013 1:32 pm
Re: Initialization problems, PART SOLVED
After how many more hours - of installing on a virgin windows 7 Virtualbox and a virgin XP VB and still initialization error - decided to "downgrade" to version 6.6.1 not version 7.0 DP3 as I was using.
Lo and behold it works - at least it installs and runs - now to add back the java and ADT. Should have not been using the bleeding edge - now maybe that was the problem of the emulator as well - Will keep you posted.
Lagi
Lo and behold it works - at least it installs and runs - now to add back the java and ADT. Should have not been using the bleeding edge - now maybe that was the problem of the emulator as well - Will keep you posted.
Lagi
-
- VIP Livecode Opensource Backer
- Posts: 366
- Joined: Mon Jun 10, 2013 1:32 pm
Re: Initialization problems, Android APK wont Install
OK part 3
Managed to remove the Java that was in limbo found a tool called called JavaRa from singular tools
Everything works but still have the problem of invalid apk - I have created 3 different Abdroid Virdual Devices with different memory and options I have included Froyo and more
still no joy. I have attached an android Tablet and I have the Google USB driver - I hear the noise when I connect but livecode does not show the real device.
I am on 64 bit windows 7 with version 8 of Java abd 64 bit ADT if that helps
Has anyone got any ideas - especially the Runrev team I feel I'm drowning
Thanks
Lagi
Managed to remove the Java that was in limbo found a tool called called JavaRa from singular tools
Everything works but still have the problem of invalid apk - I have created 3 different Abdroid Virdual Devices with different memory and options I have included Froyo and more
still no joy. I have attached an android Tablet and I have the Google USB driver - I hear the noise when I connect but livecode does not show the real device.
I am on 64 bit windows 7 with version 8 of Java abd 64 bit ADT if that helps
Has anyone got any ideas - especially the Runrev team I feel I'm drowning
Thanks
Lagi
Re: Initialization problems, Android APK wont Install
Hi Lagi,
This is more for you not to think your posts aren't being read because I'd guess by now you have the Mobile Support in Preferences set up correctly? Both Android sdk and Java JDK showing up?
Simon
This is more for you not to think your posts aren't being read because I'd guess by now you have the Mobile Support in Preferences set up correctly? Both Android sdk and Java JDK showing up?
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Initialization problems, Android APK wont Install
Think of your journey as progress. 
When using a physical device, you need to have ADB running and recognizing your device before you can deal with it in LC. So quit LC, launch ADB in a terminal app, and plug in your tablet. (Be sure you have turned on USB Debugging mode on the tablet in Developer Options first.) In the command line type:
adb devices
If that doesn't return your device ID then LC can't see it either and you'll need to do some troubleshooting on the reason why. If it does appear, then launch LC and see if it's there.
For virtual devices you really do need to make sure you've downloaded all the parts of all the packages you're using. LC can't build an Android app without all the pieces in place. It sounds like you've probably already done that, but double-check.
I don't build on Windows so I'm not positive, but I have read about problems with certain versions of Java on that OS; I wonder if that's what's wrong. Maybe someone else can verify which version of Java you need.

When using a physical device, you need to have ADB running and recognizing your device before you can deal with it in LC. So quit LC, launch ADB in a terminal app, and plug in your tablet. (Be sure you have turned on USB Debugging mode on the tablet in Developer Options first.) In the command line type:
adb devices
If that doesn't return your device ID then LC can't see it either and you'll need to do some troubleshooting on the reason why. If it does appear, then launch LC and see if it's there.
For virtual devices you really do need to make sure you've downloaded all the parts of all the packages you're using. LC can't build an Android app without all the pieces in place. It sounds like you've probably already done that, but double-check.
I don't build on Windows so I'm not positive, but I have read about problems with certain versions of Java on that OS; I wonder if that's what's wrong. Maybe someone else can verify which version of Java you need.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- Livecode Opensource Backer
- Posts: 447
- Joined: Mon Jan 23, 2012 12:46 pm
Re: Initialization problems, Android APK wont Install
I recently ran in to a bit of trouble with the emulator/ test devices. This is what worked for me:
I uninstalled everything java, and the android sdk
Reinstall JDK
Reinstall android SDK and install packages for 2.2.2 and 2.3.3
Reinstall java for my browser
Restart computer
After I did this, I was able to launch an app on an emulated device and on a test device. I am using 6.6.2 (rc2) and 6.5.2 on a 64 bit windows 7 machine. Hope this helps.
I uninstalled everything java, and the android sdk
Reinstall JDK
Reinstall android SDK and install packages for 2.2.2 and 2.3.3
Reinstall java for my browser
Restart computer
After I did this, I was able to launch an app on an emulated device and on a test device. I am using 6.6.2 (rc2) and 6.5.2 on a 64 bit windows 7 machine. Hope this helps.
Last edited by sefrojones on Mon May 12, 2014 5:01 pm, edited 1 time in total.
-
- VIP Livecode Opensource Backer
- Posts: 366
- Joined: Mon Jun 10, 2013 1:32 pm
Re: Initialization problems, Android APK wont Install
Hi,
Thanks for that. I got it working last night and wrote a post l explaining what I did. Saved it as a draft and thought Ill get the app working on my android tablet. It didn't work although went further than the last time.
And for some reason the emulated app stopped working again and yet I had run it at least 10 times before without a problem.
So another wasted 7 hours .... news at 11
Lagi
Thanks for that. I got it working last night and wrote a post l explaining what I did. Saved it as a draft and thought Ill get the app working on my android tablet. It didn't work although went further than the last time.
And for some reason the emulated app stopped working again and yet I had run it at least 10 times before without a problem.
So another wasted 7 hours .... news at 11

Lagi