How can I get started developing in Eclipse for Android?
-
I'm trying to do a "myfirstapp" example and in just creating the application, without any code from me, I have 7 errors, below are a few examples. Being used to Visual Studio and Csharp, I'm a little confused as to why it is so difficult just to get a hello world type application going and trying to debug/test it in the virtual environment? Can someone help me get to a baseline place, so I can start creating applications and learning how to write for the Android OS?
Quote:
Description Resource Path Location Type error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'. styles.xml /MyFirstApp/res/values-v14 line 8 Android AAPT Problem
Quote:
Description Resource Path Location Type error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. styles.xml /MyFirstApp/res/values line 7 Android AAPT Problem
Quote:
Description Resource Path Location Type The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project MyFirstApp Unknown Java Problem
Quote:
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.editors.manifest.ManifestEditor.
Quote:
org.eclipse.core.runtime.CoreException: Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.editors.manifest.ManifestEditor. at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194) at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:176) at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905) at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243) at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55) at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:273) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.ui.int
-
I'm trying to do a "myfirstapp" example and in just creating the application, without any code from me, I have 7 errors, below are a few examples. Being used to Visual Studio and Csharp, I'm a little confused as to why it is so difficult just to get a hello world type application going and trying to debug/test it in the virtual environment? Can someone help me get to a baseline place, so I can start creating applications and learning how to write for the Android OS?
Quote:
Description Resource Path Location Type error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'. styles.xml /MyFirstApp/res/values-v14 line 8 Android AAPT Problem
Quote:
Description Resource Path Location Type error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. styles.xml /MyFirstApp/res/values line 7 Android AAPT Problem
Quote:
Description Resource Path Location Type The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project MyFirstApp Unknown Java Problem
Quote:
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.editors.manifest.ManifestEditor.
Quote:
org.eclipse.core.runtime.CoreException: Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.editors.manifest.ManifestEditor. at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194) at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:176) at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905) at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243) at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55) at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:273) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.ui.int
-
Try Hello Android - The Hello World Application[^]. He usesAndroid Studio rather than eclipse but it's a good start. And if you go to the articles section you will find lots more samples, there is probably one or more that uses eclipse.
Thank you. I downloaded Android Studio and am trying to follow the OP's instructions, but I don't see the same menu items as he does, as noted in the comments section at the bottom of the article.
-
Thank you. I downloaded Android Studio and am trying to follow the OP's instructions, but I don't see the same menu items as he does, as noted in the comments section at the bottom of the article.
-
I have looked at those comments and cannot figure out what you are doing. I followed the tutorial and it all worked according to the article.
I even downloaded his project, opened it and did not touch anything. It does not have the right click options he described and when I click the run button, nothing happens? I also cannot get to the configuration of the AVD, it is just greyed out? Can you right click on the helloworld folder and get "new --> class" ? What happens when you debug/compile his example? To my understanding, I followed his example exactly and also downloaded his example as a known good?
-
I even downloaded his project, opened it and did not touch anything. It does not have the right click options he described and when I click the run button, nothing happens? I also cannot get to the configuration of the AVD, it is just greyed out? Can you right click on the helloworld folder and get "new --> class" ? What happens when you debug/compile his example? To my understanding, I followed his example exactly and also downloaded his example as a known good?
It all worked when I tried it, but I did have some issues with the installation. It sounds as though you may have some component(s) missing from your setup. I have to admit that setting up both Android Studio and Eclipse are somewhat less than straightforward, and you have to make some guesses along the way. Have you installed all the correct SDK components as listed in the article?
-
It all worked when I tried it, but I did have some issues with the installation. It sounds as though you may have some component(s) missing from your setup. I have to admit that setting up both Android Studio and Eclipse are somewhat less than straightforward, and you have to make some guesses along the way. Have you installed all the correct SDK components as listed in the article?
I believe I have. This may be asking a lot, but could you list the steps with links that you installed/downloaded/configured, so I have a baseline and do not have any room for error with guesses?
-
I believe I have. This may be asking a lot, but could you list the steps with links that you installed/downloaded/configured, so I have a baseline and do not have any room for error with guesses?
-
Sorry, no, I did not make a note of them. All you can do is try re-installing and carefully following the steps in the tutorial. If it helps there are a number of other tutorials in the same section which might help to clarify things.
Thanks anyway. This is too difficult to do, just to write code (which should be the more difficult part) so I'm not going to waste anymore time on this. I'll stick to Visual Studio and C#, I can't imagine anyone going through this frustration to write Android applications.
-
Thanks anyway. This is too difficult to do, just to write code (which should be the more difficult part) so I'm not going to waste anymore time on this. I'll stick to Visual Studio and C#, I can't imagine anyone going through this frustration to write Android applications.
Well you are half right. Yes it is a pain when something goes wrong during installation/setup, but Android is not the only system to have issues like this: have you ever tried to setup SQL server? And, once you have it all set up the actual programming side is not such a struggle, although there is (obviously) a lot to learn.