Part 1 - Setting up an older Eclipse version

Like others i have an old device with Android, a Samsung i5500 and some years ago i did developed a game for it to teach my daughter the numbers when she was 3 years.   The device is still working, it had Froyo Android 2.2 and upgraded to 2.3 Gingerbeard with Cyanogenmod.  There seem to be two problems to resolve, future problems and past problems, because it is incredible difficult if one wants to develop something for an old device how hard it is!  Like inventing something new.  All versions are deleted, unavailable... may be for that reason i have some hobby of collecting old software and backing up.  I hope i help somebody with this.

 

Download

eclipse-standard-kepler-R-linux-gtk-x86_64.tar.gz

 

 

!ENTRY org.eclipse.osgi 4 0 2021-05-24 23:01:22.214
!MESSAGE error loading hook: org.eclipse.osgi.internal.baseadaptor.BaseHookConfigurator
!STACK 0
java.lang.reflect.InaccessibleObjectException: Unable to make protected void java.net.URLClassLoader.addURL(java.net.URL) accessible: module java.base does not "opens java.net" to unnamed module @1c53fd30
 

 Solution:

Download & Uncompress:jre-8u291-linux-x64.tar.gz

Modify / add eclipse.ini:

--launcher.appendVmargs
-vm
~/Android/jre1.8.0_291/bin
-vmargs

 

 

eclipse import android.os cannot be resolved

 Open Eclipse -> Help -> Install Software -> Add:

ADP Repository

http://dl-ssl.google.com/android/eclipse/

 


 

Eclipse restarts

Now Window -> Preferences -> Now appears Android option

I had this:

/home/walter/Desktop/Android/adt-bundle-linux-x86_64-20131030/sdk


Pointed here:

/home/walter/Backup/Android/Android/adt-bundle-linux-x86_64-20131030/sdk

 

It openeded the SDK Manager and updated few packages:



Important is to add android library to each project:




And with this you are able to do Android apps for Froyo, Gingerbread or old versions.


Error: R cannot be reoslved to a variable (in Eclipse)

Removed gen -> and recreates it.

Check res/values/strings.xml and others, fix, remove gen, recreate.

Comments