thank god, I finally find the reason of my problem. It comes from access 
permission based on linux. I have root permission of SDK and home permission of 
eclipse, so after I change the SDK authority permission using command

sudo chown -R gzh:gzh android-sdk-linux_x86-1.0_r1/

I can successfully lauch my android apidemo application finally. 



在2009-02-20,"Jackie Lee" <jackie.sp...@gmail.com> 写道:
>
>Have you tried: right click on the project and select Android Tools >
>Fix Project Properties.?
>I don't know if it works, but you can have a try.
>
>On Fri, Feb 20, 2009 at 9:47 AM, susanner <zsusan...@163.com> wrote:
>> Hi everyone
>> my eclipse version eclipse-java-ganymede-SR1-linux-gtk.tar.gz
>> my sdk version:android-sdk-linux_x86-1.0_r1.zip
>> AND i think i have followed the steps in authority google website to install
>> ADT.
>> and I think I have successfully set the SDK path in eclipse following the
>> google website.
>> I have added environment variable in file ~/.bashrc as following:
>> PATH=$PATH:/opt/bin
>> export PATH
>> PATH=$PATH:/opt/android-sdk-linux_x86-1.0_r1/tools
>> export PATH
>> PATH=$PATH:/opt/eclipse
>> export PATH
>>
>> but although I can successfully start eclipse , when I set a new android
>> project, error occurs. it pops up a window to inform me that:
>> Failed to get the required ADT version number from the SDK.
>> And android Toolkit may not work properly.
>>
>> and the console window in eclipse shows:
>> [2009-02-20 09:41:27 - Android Framework Parser] Menu declare-styleable Menu
>> not found in file
>> /opt/android-sdk-linux_x86-1.0_r1/tools/lib/res//default/values/attrs.xml
>> [2009-02-20 09:41:27 - Android Framework Parser] Menu declare-styleable
>> MenuItem not found in file
>> /opt/android-sdk-linux_x86-1.0_r1/tools/lib/res//default/values/attrs.xml
>> [2009-02-20 09:41:27 - Android Framework Parser] Menu declare-styleable
>> MenuGroup not found in file
>> /opt/android-sdk-linux_x86-1.0_r1/tools/lib/res//default/values/attrs.xml
>> [2009-02-20 09:41:27 - Android Framework Parser] Searchable
>> declare-styleable Searchable not found in file
>> /opt/android-sdk-linux_x86-1.0_r1/tools/lib/res//default/values/attrs.xml
>> [2009-02-20 09:41:27 - Android Framework Parser] Searchable
>> declare-styleable SearchableActionKey not found in file
>> /opt/android-sdk-linux_x86-1.0_r1/tools/lib/res//default/values/attrs.xml
>> [2009-02-20 09:41:27] Warning, ADT/SDK Mismatch! The following elements are
>> declared by ADT but not by the SDK: manifest
>> [2009-02-20 09:41:27 - Framework Resource Parser] Failed to parse
>>
>> I am using ubuntu 8.10, and using the terminal to start the eclipse, and
>> also the terminal shows :Error Loading Preferences
>> Exception in thread "Ping!" org.eclipse.swt.SWTError: Not implemented
>> [multiple displays]
>>     at org.eclipse.swt.SWT.error(SWT.java:3803)
>>     at org.eclipse.swt.widgets.Display.checkDisplay(Display.java:712)
>>     at org.eclipse.swt.widgets.Display.create(Display.java:842)
>>     at org.eclipse.swt.graphics.Device.<init>(Device.java:154)
>>     at org.eclipse.swt.widgets.Display.<init>(Display.java:471)
>>     at org.eclipse.swt.widgets.Display.<init>(Display.java:462)
>>     at com.android.ping.PingService.getUserPermission(PingService.java:278)
>>     at com.android.ping.PingService.ping(PingService.java:126)
>>     at com.android.ide.eclipse.common.PingHelper.pingUsageServer(Unknown
>> Source)
>>     at com.android.ide.eclipse.adt.AdtPlugin$10.run(Unknown Source)
>>
>> has any one met the problem ?
>>
>>
>>
>>
>> ________________________________
>> 网易邮箱,中国第一大电子邮件服务商 >
>>
>
>
>
>-- 
>Regards,
>Yuxing LI
>
>>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to