【问题标题】:AVD showing in console控制台中显示的 AVD
【发布时间】:2014-02-24 14:22:41
【问题描述】:

美好的一天堆栈溢出

当我尝试在 AVD 中运行我的应用程序时,它会在控制台中显示以下错误:

[2014-02-24 06:39:35 - lib-c2callsdkres] Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tools > Fix Project Properties.

[2014-02-24 07:44:37 - pull-to-refresh] Unable to resolve target 'android-16'

[2014-02-24 07:53:43 - pull-to-refresh] Unable to resolve target 'android-16'

[2014-02-24 11:13:41 - lib-c2callsdkres] Project has no project.properties file! Edit the project properties to set one.

[2014-02-24 11:44:07 - com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] Parser exception for C:\Users\user\workspace\SdkDemo\AndroidManifest.xml: The value of attribute "android:authorities" associated with an element type "null" must not contain the '<' character.

[2014-02-24 11:44:07 - SdkDemo] Error in an XML file: aborting build.

[2014-02-24 12:07:13 - com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper]

Parser exception for C:\Users\user\workspace\SdkDemo\AndroidManifest.xml: The value of attribute "android:name" associated with an element type "null" must not contain the '<' character.

[2014-02-24 12:07:13 - SdkDemo] Error in an XML file: aborting build.

[2014-02-24 12:07:44 - com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] 

Parser exception for C:\Users\user\workspace\SdkDemo\AndroidManifest.xml: Open quote is expected for attribute "{1}" associated with an  element type  "android:name".

[2014-02-24 12:07:44 - SdkDemo] Error in an XML file: aborting build.

[2014-02-24 12:25:33 - Scringo] Project has no project.properties file! Edit the project properties to set one.

[2014-02-24 13:00:55 - google-play-services_lib] WARNING: unable to write jarlist cache file C:\Users\user\workspace\google-play-services_lib\bin\jarlist.cache

[2014-02-24 13:00:55 - google-play-services_lib] WARNING: unable to write jarlist cache file C:\Users\user\workspace\google-play-services_lib\bin\jarlist.cache

[2014-02-24 13:01:13 - ScringoSample] Project has no project.properties file! Edit the project properties to set one.

[2014-02-24 13:01:15 - ScringoSample] WARNING: unable to write jarlist cache file C:\Users\user\workspace\ScringoSample\bin\jarlist.cache

[2014-02-24 13:01:16 - ScringoSample] WARNING: unable to write jarlist cache file C:\Users\user\workspace\ScringoSample\bin\jarlist.cache

[2014-02-24 13:01:16 - ScringoSample] WARNING: unable to write jarlist cache file C:\Users\user\workspace\ScringoSample\bin\jarlist.cache

[2014-02-24 13:01:16 - ScringoSample] WARNING: unable to write jarlist cache file C:\Users\user\workspace\ScringoSample\bin\jarlist.cache

[2014-02-24 15:01:35 - ScringoSample] ------------------------------

[2014-02-24 15:01:35 - ScringoSample] Android Launch!

[2014-02-24 15:01:35 - ScringoSample] adb is running normally.

[2014-02-24 15:01:36 - ScringoSample] Performing com.scringo.scringosample.MainActivity activity launch

[2014-02-24 15:01:37 - ScringoSample] Automatic Target Mode: launching new emulator with compatible AVD 'nexus'

[2014-02-24 15:01:37 - ScringoSample] Launching a new emulator with Virtual Device 'nexus'

Blockquote

[2014-02-24 15:02:19 - Emulator] emulator: warning: opening audio input failed

[2014-02-24 15:02:19 - Emulator] 

[2014-02-24 15:02:26 - ScringoSample] New emulator found: emulator-5554

[2014-02-24 15:02:26 - ScringoSample] Waiting for HOME ('android.process.acore') to be launched...

[2014-02-24 15:09:04 - ScringoSample] HOME is up on device 'emulator-5554'

[2014-02-24 15:09:04 - ScringoSample] Uploading ScringoSample.apk onto device 'emulator-5554'

[2014-02-24 15:09:09 - ScringoSample] Installing ScringoSample.apk...

[2014-02-24 15:11:24 - ScringoSample] Failed to install ScringoSample.apk on device 'emulator-5554!

[2014-02-24 15:11:24 - ScringoSample] (null)

[2014-02-24 15:11:24 - ScringoSample] Launch canceled!

我想知道所需的解决方案

谢谢

【问题讨论】:

  • 我认为它与 Java 编译器版本有关。在项目属性中将其降级为 1.6。
  • 还有一点,在pull to refresh中,将android版本更改为您安装的api版本。您的计算机上未安装 Android 16。

标签: android eclipse avd


【解决方案1】:

更改清单文件中所需的 android 版本。

也可以右键单击它并转到 Android 工具-> 修复项目属性以修复 java 版本。

例如,当使用带有字符串的 switch case 时,与最新的 java 版本相比,android 不支持这种情况。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-09-29
    • 2022-12-18
    • 1970-01-01
    • 1970-01-01
    • 2023-03-18
    相关资源
    最近更新 更多