As Android developer, I have met a strange problem when I want use a third party jar, it remained me that:
Dex Loader] Unable to execute dex: null
Conversion to Dalvik format failed: Unable to execute dex: null
out of memory error…An internal error occurred during: “Build Project”.
Java heap space
This is the DEX Error，I find the solutions by Google, one way is to modify the eclipse.ini, you can increase the memory allocated in eclipse.ini to this: -Xms128m -Xmx512m or something higher, but this didn’t work for me. After modify the eclipse.ini, I cannot start the eclipse. By StackOverflow, I find a solution:
eclipse.ini file must have -vm on first line and path on second line. don’t try to put everything into one line!
After add the -vm and the path in my eclipse.ini, I can start my Eclipse and the problem has been resolved.
Another way to solve the ” Conversion to Dalvik format failed: Unable to execute dex: null” problem is using the user library, the concrete steps are as follows:
1. Right-click the project in Eclipse and select “Build Path -> Add Libraries…”.
2. Select User Library from the list and click Next.
3. Click the “User Libraries…” button.
4. Click “New…” in the User Libraries dialog.
5. Give the user library a name and select the System library checkbox and click OK.
6. Highlight the newly added user library in the list and click the “Add JARs…” button and add the desired jar files.
7. Click OK on the User Libraries dialog.
8. Make sure the new user library is checked in the Add Library dialog and …
Posted by CuteAndroid
We have talked about the PHP for Android project (PFA), which provides PHP support to Android Scripting Environment (ASE). Now it’s time to talk about the open source Android project: Android Scripting Environment (ASE).
Android Scripting Environment(ASE) is a Google-mantained open source Android project which is descripted as “Scripting Layer for Android brings scripting languages to Android “.
* a simple, very high level API layer on top of Android’s own APIs,
* on-device developer tools (script editing, launching, debugging, etc.),
* sharing scripts as APKs (i.e. typical Android applications),
* and standards for adding new interpreters.
You can download the latest package on the download section at My Tracks project home.
First Create your own clone
Create a clone of the android-scripting repository hosted at Google Code.
A repository clone is a server-side copy of a project’s repository and can be created by anyone that wants to contribute to a project. For more information, see the Mercurial FAQ.
Then use the Command-line access:
hg clone https://android-scripting.googlecode.com/hg/ android-scripting
For more details:
SL4A Video Help
Following is the SL4A Video Help From Youtube:
Categories: Android, Android app, Android Application, Android developer Tags: Android, Android app, Android Application, android apps, Android developer, android-scripting, ASE, developer, Open Source, PHP for Android, Scripting Layer for Android, SL4A
PHP for Android project (PFA) is an open source android app which has been just launched by Irontec. The project aims to make PHP development in Android not only possible but also feasible providing tools and documentation. Now it already has an APK(PhpForAndroid.apk) which provides PHP support to Android Scripting Environment (ASE).
Irontec is the company behind this project.
Apk and Source Code Downloads
You can download the latest package and source code on the release section at PHP for Android project home: http://phpforandroid.net/releases
1. Android OS 1.5 (phone or emulator) or above requirement;
2. Enable “Unknown Sources” under Application settings;
3. Install ASE (Android Scripting Environment);
4. Install PhpForAndroid.apk.
For details, pls refer the project home.
Following is the Demo Installation:
Categories: Android, Android app, Android Application, Android developer Tags: Android, Android app, Android Application, android apps, Android developer, developer, Irontec, Open Source, PHP for Android
As Android developer, have you ever thought installing Ubuntu on your Android phones? Being able to have Ubuntu on your Android phone means that you can run native Ubuntu/linux applications off your phone! Now Nexus One Hacks blog shows that How to Install Ubuntu Linux on Your Android Phone: Nexus One, HTC Evo 4G or any other rooted Android smartphone. Following is the video guide from Youtube.
How to Install Ubuntu Linux on your Nexus One or Android phone!
Evobuntu – How to Install Ubuntu on HTC Evo 4G!
Posted by Cute Android