Posts Tagged ‘Eclipse IDE’

ADT-Addons

Posted: May 4, 2011 in Android, Eclipse, Java
Tags:

Although refactoring features are already included in ADT and install sdk functionality might be appearing in ADT 11.0, you will rest of these adt-addons eclipse plugins useful to android development.

The one I use right now is adding sources to the android container in my android projects.

Hello everyone.  Sometimes you will see a Dalvik failed to convert error 2. What is happening is that one Eclipse IDE ini file JVM setting in combination with using JVMs from Oracle 1.6.21 or later causes this conflict.

The work around is to remove -XX:+AggressiveOpts from your ini file JVM settings.

PivotalLabs Eclipse IDE instructions for using Robolectric is wrong. It is wrong in that you are not able to run junit tests from the Eclipse IDE as the Eclipse workspace and Eclipse IDE combination will not recognize linked-source individual files and files such as the AndroidManifest are required for robolectric to operate correctly during the junit tests.

I did put up a sample project(Wabash) with the eclipse IDE project layout of App-Parent project and the child JVMTest and child AndroidTestProject with a correct set of ant build scripts. It is left to you to fill-in or add the codeqa reports targets and logic. Also, under Eclipse 3.6 the openfile feature can open junit.xml files on junit view if you are executing a command line command sequence of:

 

eclipse --launcher.openFile absolute path of file to open

Thus, you can set an exec bash target to execute that after you have the junit tests run and the junit reports generated as if the Eclipse IDE is open that junit view will come up with the junit report.