Good Day stackoverflow
当我尝试在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!
我想知道所需的解决方案
谢谢
答案 0 :(得分:0)
更改清单文件中所需的Android版本。
右键单击它并转到Android工具 - >修复项目属性以修复java版本。
例如,当使用带有字符串的switch case时,与最新的java版本相比,android上不支持。