Hello Everyone, I've created my first ("Hello, World" type (actually, "Yeaux, Dudimus")) Android app.
A lot of the stuff here I will probably later laugh at, but as I said, this is my very first attempt at an Android app (I'm pretty new to Java also, having come from the Delphi and then C# world). Anyway and without further ad[ieu,o]: When I right-click the project in Eclipse and select Run As -> Android Application, I get the Android AVD Error "No compatible targets were found. Do you wish to a add [sic] new Android Virtual Device?" I mash "Yes" and then have to select the solitary entry in "Android SDK and AVD Manager | Virtual Devices" (in my case an AVD I named "bobas_avd" with TargetName "Android 2.1-update 1", platform the same, API Level 7, CPU/ABI ARM (armeabi) Then I select the "Start" button, and "Launch" from the next dialog. EVERY TIME I run my appp I have to do this. What do I need to do so that it will remember which AVD to use? Also, the Emulator starts (5554:bobas_avd), with a pulsing "android" in the middle left, with the android buttons and keyboard to the right, and eventually other stuff displays (Google this and that, unsurprisingly). However, my app doesn't run (I don't see the expected "Hello, World"). What [am, have] I done wrong? These are the messages in Eclipse's Console area: [2011-07-26 22:28:10 - YeauxDudimus] Still no compatible AVDs with target 'Android 3.2': Aborting launch. [2011-07-26 22:28:10 - YeauxDudimus] Performing com.bobas.YeauxDudimusActivity activity launch [2011-07-26 22:28:34 - YeauxDudimus] ERROR: Application requires API version 13. Device API version is 7 (Android 2.1-update1). [2011-07-26 22:28:34 - YeauxDudimus] Launch canceled! This is the contents of the Error Log: !SESSION 2011-07-02 14:19:39.546 ----------------------------------------------- eclipse.buildId=I20110613-1736 java.version=1.6.0_18 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Framework arguments: -product org.eclipse.epp.package.java.product Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.java.product !ENTRY org.eclipse.jdt.ui 2 0 2011-07-02 14:54:31.078 !MESSAGE The 'org.eclipse.mylyn.java.ui.javaAllCompletionProposalComputer' proposal computer from the 'org.eclipse.mylyn.java.ui' plug-in did not complete normally. The extension took too long to return from the 'computeCompletionProposals()' operation. !SESSION 2011-07-09 06:59:37.968 ----------------------------------------------- eclipse.buildId=I20110613-1736 java.version=1.6.0_26 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Framework arguments: -product org.eclipse.epp.package.java.product Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.java.product !ENTRY org.eclipse.epp.usagedata.recording 1 0 2011-07-09 07:03:23.296 !MESSAGE Usage data uploaded to http://udc.eclipse.org/upload.php in 4125 milliseconds. !SESSION 2011-07-22 06:56:47.906 ----------------------------------------------- eclipse.buildId=I20110613-1736 java.version=1.6.0_26 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Framework arguments: -product org.eclipse.epp.package.java.product Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.java.product !ENTRY org.eclipse.epp.usagedata.recording 1 0 2011-07-22 06:57:29.937 !MESSAGE Usage data uploaded to http://udc.eclipse.org/upload.php in 2796 milliseconds. !SESSION 2011-07-25 06:37:38.343 ----------------------------------------------- eclipse.buildId=I20110613-1736 java.version=1.6.0_26 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Framework arguments: -product org.eclipse.epp.package.java.product Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.java.product !ENTRY com.android.ide.eclipse.adt 4 0 2011-07-25 20:15:10.031 !MESSAGE Failed to load properties file for project 'YeauxDudimus' !ENTRY org.eclipse.osgi 2 0 2011-07-25 20:15:51.750 !MESSAGE While loading class "org.eclipse.m2e.core.internal.embedder.ExtensionModule", thread "Thread[Worker-70,5,main]" timed out waiting (5016ms) for thread "Thread[Worker-73,5,main]" to finish starting bundle "org.eclipse.m2e.core_1.0.0.20110607-2117 [170]". To avoid deadlock, thread "Thread[Worker-70,5,main]" is proceeding but "org.eclipse.m2e.core.internal.embedder.ExtensionModule" may not be fully initialized. !STACK 0 org.osgi.framework.BundleException: State change in progress for bundle "reference:file:plugins/ org.eclipse.m2e.core_1.0.0.20110607-2117.jar" by thread "Worker-73". at org.eclipse.osgi.framework.internal.core.AbstractBundle.beginStateChange(AbstractBundle.java: 1087) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java: 297) at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java: 440) at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java: 268) at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java: 107) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java: 462) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java: 216) at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java: 400) at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java: 476) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java: 429) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java: 417) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java: 107) at java.lang.ClassLoader.loadClass(Unknown Source) at org.eclipse.m2e.core.internal.embedder.MavenImpl.newPlexusContainer(MavenImpl.java: 1116) at org.eclipse.m2e.core.internal.embedder.MavenImpl.getPlexusContainer(MavenImpl.java: 1048) at org.eclipse.m2e.core.internal.embedder.MavenImpl.lookup(MavenImpl.java: 1102) at org.eclipse.m2e.core.internal.embedder.MavenImpl.createExecutionRequest(MavenImpl.java: 202) at org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager.refresh(ProjectRegistryManager.java: 294) at org.eclipse.m2e.core.internal.project.registry.ProjectRegistryRefreshJob.run(ProjectRegistryRefreshJob.java: 87) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Caused by: org.eclipse.osgi.framework.internal.core.AbstractBundle $BundleStatusException ... 20 more Root exception: org.eclipse.osgi.framework.internal.core.AbstractBundle $BundleStatusException at org.eclipse.osgi.framework.internal.core.AbstractBundle.beginStateChange(AbstractBundle.java: 1087) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java: 297) at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java: 440) at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java: 268) at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java: 107) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java: 462) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java: 216) at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java: 400) at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java: 476) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java: 429) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java: 417) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java: 107) at java.lang.ClassLoader.loadClass(Unknown Source) at org.eclipse.m2e.core.internal.embedder.MavenImpl.newPlexusContainer(MavenImpl.java: 1116) at org.eclipse.m2e.core.internal.embedder.MavenImpl.getPlexusContainer(MavenImpl.java: 1048) at org.eclipse.m2e.core.internal.embedder.MavenImpl.lookup(MavenImpl.java: 1102) at org.eclipse.m2e.core.internal.embedder.MavenImpl.createExecutionRequest(MavenImpl.java: 202) at org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager.refresh(ProjectRegistryManager.java: 294) at org.eclipse.m2e.core.internal.project.registry.ProjectRegistryRefreshJob.run(ProjectRegistryRefreshJob.java: 87) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) !ENTRY org.eclipse.m2e.logback.appender 4 0 2011-07-25 20:19:04.984 !MESSAGE Unable to update index for central|http://repo1.maven.org/ maven2 !ENTRY org.eclipse.jface 2 0 2011-07-25 20:28:08.687 !MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation. !SUBENTRY 1 org.eclipse.jface 2 0 2011-07-25 20:28:08.687 !MESSAGE A conflict occurred for ALT+CTRL+J: Binding(ALT+CTRL+J, ParameterizedCommand(Command(org.eclipse.ui.edit.text.join.lines,Join Lines, Join lines of text, Category(org.eclipse.ui.category.textEditor,Text Editing,Text Editing Commands,true), LegacyHandlerWrapper(ActionHandler(action=org.eclipse.ui.texteditor.JoinLinesAction@178b5d4)), ,,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.ui.textEditorScope,,,system) Binding(ALT+CTRL+J, ParameterizedCommand(Command(com.cloudgarden.jigloo.commands.openJiglooPrefs,Open Jigloo Preferences Page, Open Jigloo Preferences Page, Category(com.cloudgarden.jigloo.actions.category,Jigloo,Jigloo Actions,true), , ,,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.ui.textEditorScope,,,system) !SESSION 2011-07-26 18:20:55.960 ----------------------------------------------- eclipse.buildId=I20110613-1736 java.version=1.6.0_26 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Framework arguments: -product org.eclipse.epp.package.java.product Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.java.product !ENTRY org.eclipse.jface 2 0 2011-07-26 18:21:21.773 !MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation. !SUBENTRY 1 org.eclipse.jface 2 0 2011-07-26 18:21:21.773 !MESSAGE A conflict occurred for ALT+CTRL+J: Binding(ALT+CTRL+J, ParameterizedCommand(Command(org.eclipse.ui.edit.text.join.lines,Join Lines, Join lines of text, Category(org.eclipse.ui.category.textEditor,Text Editing,Text Editing Commands,true), LegacyHandlerWrapper(ActionHandler(action=org.eclipse.ui.texteditor.JoinLinesAction@1486540)), ,,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.ui.textEditorScope,,,system) Binding(ALT+CTRL+J, ParameterizedCommand(Command(com.cloudgarden.jigloo.commands.openJiglooPrefs,Open Jigloo Preferences Page, Open Jigloo Preferences Page, Category(com.cloudgarden.jigloo.actions.category,Jigloo,Jigloo Actions,true), , ,,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.ui.textEditorScope,,,system) and here is my code, such as it is: package com.bobas; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class YeauxDudimusActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView tv = new TextView(this); tv.setText("Yeaux, Dudimus"); setContentView(tv); //setContentView(R.layout.main); } } -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en