1

我是移动应用程序的新手。我正在使用 Dreamweaver CS5.5。现在我尝试按照 youtube 中的一些视频教程构建移动应用程序,我还安装了 android SDK。但是当我尝试构建文件时,它总是给我一条错误消息 在此处输入图像描述

但是当我尝试构建和模拟时,只显示模拟器。buildlog.log 的内容如下

WARNING: no icon was specified in app settings. using default.
WARNING: no splash screen was specified in app settings. using default.
Cloning seed app for Android
<DW>
____________________
set ANT_HOME=C:\PROGRA~1\Adobe\ADOBED~2.5\CONFIG~1\NATIVE~1\APACHE~1
set ANDROID_HOME=C:\Andriod\android-sdk
set JAVA_HOME=C:\PROGRA~1\Adobe\ADOBED~2.5\JDK
set PATH=%JAVA_HOME%\bin;%PATH%
cd C:\DOCUME~1\PT\Desktop\COMTRA~1.MOB
C:\WINDOWS\system32\cmd.exe /u /c C:\PROGRA~1\Adobe\ADOBED~2.5\CONFIG~1\NATIVE~1\DWPHON~1\android\scripts\droidGap.bat "C:\Program Files\Adobe\Adobe Dreamweaver CS5.5\Configuration\NativeAppFramework\DWPhoneGap\android\PhoneGapApp" "mobileSample" com.travelco.mob3 1.0 "C:\Andriod\android-sdk" 2
____________________
</DW>

C Created project directory: C:\Documents and Settings\PT\Desktop\com.travelco.mob3_Android\com.travelco.mob3

Created directory C:\Documents and Settings\PT\Desktop\com.travelco.mob3_Android\com.travelco.mob3\src\com\travelco\mob3

Added file C:\Documents and Settings\PT\Desktop\com.travelco.mob3_Android\com.travelco.mob3\src\com\travelco\mob3\DefaultActivity.java

Created directory C:\Documents and Settings\PT\Desktop\com.travelco.mob3_Android\com.travelco.mob3\res

Created directory C:\Documents and Settings\PT\Desktop\com.travelco.mob3_Android\com.travelco.mob3\bin

Created directory C:\Documents and Settings\PT\Desktop\com.travelco.mob3_Android\com.travelco.mob3\libs

Created directory C:\Documents and Settings\PT\Desktop\com.travelco.mob3_Android\com.travelco.mob3\res\values

Added file C:\Documents and Settings\PT\Desktop\com.travelco.mob3_Android\com.travelco.mob3\res\values\strings.xml

Created directory C:\Documents and Settings\PT\Desktop\com.travelco.mob3_Android\com.travelco.mob3\res\layout

Added file C:\Documents and Settings\PT\Desktop\com.travelco.mob3_Android\com.travelco.mob3\res\layout\main.xml

Added file C:\Documents and Settings\PT\Desktop\com.travelco.mob3_Android\com.travelco.mob3\AndroidManifest.xml

Added file C:\Documents and Settings\PT\Desktop\com.travelco.mob3_Android\com.travelco.mob3\build.xml

Added file C:\Documents and Settings\PT\Desktop\com.travelco.mob3_Android\com.travelco.mob3\proguard-project.txt

CLONE SUCCESSFUL


<DW>
____________________
set ANT_HOME=C:\PROGRA~1\Adobe\ADOBED~2.5\CONFIG~1\NATIVE~1\APACHE~1
set ANDROID_HOME=C:\Andriod\android-sdk
set JAVA_HOME=C:\PROGRA~1\Adobe\ADOBED~2.5\JDK
set PATH=%JAVA_HOME%\bin;%PATH%
cd C:\DOCUME~1\PT\Desktop\COMTRA~1.MOB
C:\WINDOWS\system32\cmd.exe /u /c C:\PROGRA~1\Adobe\ADOBED~2.5\CONFIG~1\NATIVE~1\APACHE~1\bin\ant.bat debug
____________________
</DW>
Buildfile: C:\DOCUME~1\PT\Desktop\COMTRA~1.MOB\build.xml



-set-mode-check:



-set-debug-files:



-check-env:

 [checkenv] Android SDK Tools Revision 21.1.0

 [checkenv] Installed at C:\Andriod\android-sdk



-setup:

     [echo] Project Name: mob3

  [gettype] Project Type: Application



-set-debug-mode:



-debug-obfuscation-check:



-pre-build:



-build-setup:

     [echo] Resolving Build Target for mob3...

[gettarget] Project Target:   Google APIs

[gettarget] Vendor:           Google Inc.

[gettarget] Platform Version: 2.2

[gettarget] API level:        8

     [echo] ----------

     [echo] Creating output directories if needed...

    [mkdir] Created dir: C:\DOCUME~1\PT\Desktop\COMTRA~1.MOB\bin\res

    [mkdir] Created dir: C:\DOCUME~1\PT\Desktop\COMTRA~1.MOB\gen

    [mkdir] Created dir: C:\DOCUME~1\PT\Desktop\COMTRA~1.MOB\bin\classes

    [mkdir] Created dir: C:\DOCUME~1\PT\Desktop\COMTRA~1.MOB\bin\dexedLibs

     [echo] ----------

     [echo] Resolving Dependencies for mob3...

[dependency] Library dependencies:

[dependency] No Libraries

[dependency] 

[dependency] ------------------

[dependency] API<=15: Adding annotations.jar to the classpath.

     [echo] ----------

     [echo] Building Libraries with 'debug'...

   [subant] No sub-builds to iterate on



-code-gen:

[mergemanifest] Merging AndroidManifest files into one.

[mergemanifest] Manifest merger disabled. Using project manifest only.

     [echo] Handling aidl files...

     [aidl] No AIDL files to compile.

     [echo] ----------

     [echo] Handling RenderScript files...

[renderscript] No RenderScript files to compile.

     [echo] ----------

     [echo] Handling Resources...

     [aapt] Generating resource IDs...

     [aapt] C:\DOCUME~1\PT\Desktop\COMTRA~1.MOB\bin\AndroidManifest.xml:4: error: No resource identifier found for attribute 'xlargeScreens' in package 'android'



BUILD FAILED

C:\Andriod\android-sdk\tools\ant\build.xml:647: The following error occurred while executing this line:

C:\Andriod\android-sdk\tools\ant\build.xml:688: null returned: 1



Total time: 1 second


<DW>
____________________
set ANT_HOME=C:\PROGRA~1\Adobe\ADOBED~2.5\CONFIG~1\NATIVE~1\APACHE~1
set ANDROID_HOME=C:\Andriod\android-sdk
set JAVA_HOME=C:\PROGRA~1\Adobe\ADOBED~2.5\JDK
set PATH=%JAVA_HOME%\bin;%PATH%
cd C:\Andriod\ANDROI~1\PLATFO~2
C:\Andriod\android-sdk\platform-tools\adb.exe devices
____________________
</DW>
* daemon not running. starting it now on port 5037 *

* daemon started successfully *

List of devices attached 



Launching the Android emulator
<DW>
____________________
set ANT_HOME=C:\PROGRA~1\Adobe\ADOBED~2.5\CONFIG~1\NATIVE~1\APACHE~1
set ANDROID_HOME=C:\Andriod\android-sdk
set JAVA_HOME=C:\PROGRA~1\Adobe\ADOBED~2.5\JDK
set PATH=%JAVA_HOME%\bin;%PATH%
cd C:\Andriod\ANDROI~1\tools
C:\WINDOWS\system32\cmd.exe /u /c "C:\Andriod\android-sdk\tools\emulator.exe -partition-size 1024 -cpu-delay 0 -no-boot-anim -avd DW_AVD"
____________________
</DW>
WARNING: no icon was specified in app settings. using default.
WARNING: no splash screen was specified in app settings. using default.

<DW>
____________________
set ANT_HOME=C:\PROGRA~1\Adobe\ADOBED~2.5\CONFIG~1\NATIVE~1\APACHE~1
set ANDROID_HOME=C:\Andriod\android-sdk
set JAVA_HOME=C:\PROGRA~1\Adobe\ADOBED~2.5\JDK
set PATH=%JAVA_HOME%\bin;%PATH%
cd C:\DOCUME~1\PT\Desktop\COMTRA~1.MOB
C:\WINDOWS\system32\cmd.exe /u /c C:\PROGRA~1\Adobe\ADOBED~2.5\CONFIG~1\NATIVE~1\APACHE~1\bin\ant.bat debug
____________________
</DW>
Buildfile: C:\DOCUME~1\PT\Desktop\COMTRA~1.MOB\build.xml



-set-mode-check:



-set-debug-files:



-check-env:

 [checkenv] Android SDK Tools Revision 21.1.0

 [checkenv] Installed at C:\Andriod\android-sdk



-setup:

     [echo] Project Name: mob3

  [gettype] Project Type: Application



-set-debug-mode:



-debug-obfuscation-check:



-pre-build:



-build-setup:

     [echo] Resolving Build Target for mob3...

[gettarget] Project Target:   Google APIs

[gettarget] Vendor:           Google Inc.

[gettarget] Platform Version: 2.2

[gettarget] API level:        8

     [echo] ----------

     [echo] Creating output directories if needed...

     [echo] ----------

     [echo] Resolving Dependencies for mob3...

[dependency] Library dependencies:

[dependency] No Libraries

[dependency] 

[dependency] ------------------

[dependency] API<=15: Adding annotations.jar to the classpath.

     [echo] ----------

     [echo] Building Libraries with 'debug'...

   [subant] No sub-builds to iterate on



-code-gen:

[mergemanifest] Found Deleted Target File

[mergemanifest] Merging AndroidManifest files into one.

[mergemanifest] Manifest merger disabled. Using project manifest only.

     [echo] Handling aidl files...

     [aidl] No AIDL files to compile.

     [echo] ----------

     [echo] Handling RenderScript files...

[renderscript] No RenderScript files to compile.

     [echo] ----------

     [echo] Handling Resources...

     [aapt] Generating resource IDs...

     [aapt] C:\DOCUME~1\PT\Desktop\COMTRA~1.MOB\bin\AndroidManifest.xml:4: error: No resource identifier found for attribute 'xlargeScreens' in package 'android'



BUILD FAILED

C:\Andriod\android-sdk\tools\ant\build.xml:647: The following error occurred while executing this line:

C:\Andriod\android-sdk\tools\ant\build.xml:688: null returned: 1



Total time: 1 second

OPERATION CANCELED
<DW>
____________________
set ANT_HOME=C:\PROGRA~1\Adobe\ADOBED~2.5\CONFIG~1\NATIVE~1\APACHE~1
set ANDROID_HOME=C:\Andriod\android-sdk
set JAVA_HOME=C:\PROGRA~1\Adobe\ADOBED~2.5\JDK
set PATH=%JAVA_HOME%\bin;%PATH%
cd C:\Andriod\ANDROI~1\PLATFO~2
C:\Andriod\android-sdk\platform-tools\adb.exe kill-server
____________________
</DW>
* server not running *


<DW>
____________________
ERROR: console error
    context: Dreamweaver.exe::GetExitCodeProcess
    code: 1
    message: Incorrect function.


____________________
</DW>

<DW>
____________________
set ANT_HOME=C:\PROGRA~1\Adobe\ADOBED~2.5\CONFIG~1\NATIVE~1\APACHE~1
set ANDROID_HOME=C:\Andriod\android-sdk
set JAVA_HOME=C:\PROGRA~1\Adobe\ADOBED~2.5\JDK
set PATH=%JAVA_HOME%\bin;%PATH%
cd C:\DOCUME~1\PT\Desktop\COMTRA~1.MOB
C:\WINDOWS\system32\cmd.exe /u /c C:\PROGRA~1\Adobe\ADOBED~2.5\CONFIG~1\NATIVE~1\APACHE~1\bin\ant.bat debug
____________________
</DW>
Buildfile: C:\DOCUME~1\PT\Desktop\COMTRA~1.MOB\build.xml



-set-mode-check:



-set-debug-files:



-check-env:

 [checkenv] Android SDK Tools Revision 21.1.0

 [checkenv] Installed at C:\Andriod\android-sdk



-setup:

     [echo] Project Name: mob3

  [gettype] Project Type: Application



-set-debug-mode:



-debug-obfuscation-check:



-pre-build:



-build-setup:

     [echo] Resolving Build Target for mob3...

[gettarget] Project Target:   Google APIs

[gettarget] Vendor:           Google Inc.

[gettarget] Platform Version: 2.2

[gettarget] API level:        8

     [echo] ----------

     [echo] Creating output directories if needed...

     [echo] ----------

     [echo] Resolving Dependencies for mob3...

[dependency] Library dependencies:

[dependency] No Libraries

[dependency] 

[dependency] ------------------

[dependency] API<=15: Adding annotations.jar to the classpath.

     [echo] ----------

     [echo] Building Libraries with 'debug'...

   [subant] No sub-builds to iterate on



-code-gen:

[mergemanifest] Found Deleted Target File

[mergemanifest] Merging AndroidManifest files into one.

[mergemanifest] Manifest merger disabled. Using project manifest only.

     [echo] Handling aidl files...

     [aidl] No AIDL files to compile.

     [echo] ----------

     [echo] Handling RenderScript files...

[renderscript] No RenderScript files to compile.

     [echo] ----------

     [echo] Handling Resources...

     [aapt] Generating resource IDs...

     [aapt] C:\DOCUME~1\PT\Desktop\COMTRA~1.MOB\bin\AndroidManifest.xml:4: error: No resource identifier found for attribute 'xlargeScreens' in package 'android'



BUILD FAILED

C:\Andriod\android-sdk\tools\ant\build.xml:647: The following error occurred while executing this line:

C:\Andriod\android-sdk\tools\ant\build.xml:688: null returned: 1



Total time: 1 second


<DW>
____________________
set ANT_HOME=C:\PROGRA~1\Adobe\ADOBED~2.5\CONFIG~1\NATIVE~1\APACHE~1
set ANDROID_HOME=C:\Andriod\android-sdk
set JAVA_HOME=C:\PROGRA~1\Adobe\ADOBED~2.5\JDK
set PATH=%JAVA_HOME%\bin;%PATH%
cd C:\Andriod\ANDROI~1\PLATFO~2
C:\Andriod\android-sdk\platform-tools\adb.exe devices
____________________
</DW>
* daemon not running. starting it now on port 5037 *

* daemon started successfully *

List of devices attached 



Launching the Android emulator
<DW>
____________________
set ANT_HOME=C:\PROGRA~1\Adobe\ADOBED~2.5\CONFIG~1\NATIVE~1\APACHE~1
set ANDROID_HOME=C:\Andriod\android-sdk
set JAVA_HOME=C:\PROGRA~1\Adobe\ADOBED~2.5\JDK
set PATH=%JAVA_HOME%\bin;%PATH%
cd C:\Andriod\ANDROI~1\tools
C:\WINDOWS\system32\cmd.exe /u /c "C:\Andriod\android-sdk\tools\emulator.exe -partition-size 1024 -cpu-delay 0 -no-boot-anim -avd DW_AVD"
____________________
</DW>

<DW>
____________________
set ANT_HOME=C:\PROGRA~1\Adobe\ADOBED~2.5\CONFIG~1\NATIVE~1\APACHE~1
set ANDROID_HOME=C:\Andriod\android-sdk
set JAVA_HOME=C:\PROGRA~1\Adobe\ADOBED~2.5\JDK
set PATH=%JAVA_HOME%\bin;%PATH%
cd C:\DOCUME~1\PT\Desktop\COMTRA~1.MOB
C:\WINDOWS\system32\cmd.exe /u /c C:\PROGRA~1\Adobe\ADOBED~2.5\CONFIG~1\NATIVE~1\APACHE~1\bin\ant.bat debug
____________________
</DW>
Buildfile: C:\DOCUME~1\PT\Desktop\COMTRA~1.MOB\build.xml



-set-mode-check:



-set-debug-files:



-check-env:

 [checkenv] Android SDK Tools Revision 21.1.0

 [checkenv] Installed at C:\Andriod\android-sdk



-setup:

     [echo] Project Name: mob3

  [gettype] Project Type: Application



-set-debug-mode:



-debug-obfuscation-check:



-pre-build:



-build-setup:

     [echo] Resolving Build Target for mob3...

[gettarget] Project Target:   Google APIs

[gettarget] Vendor:           Google Inc.

[gettarget] Platform Version: 2.2

[gettarget] API level:        8

     [echo] ----------

     [echo] Creating output directories if needed...

     [echo] ----------

     [echo] Resolving Dependencies for mob3...

[dependency] Library dependencies:

[dependency] No Libraries

[dependency] 

[dependency] ------------------

[dependency] API<=15: Adding annotations.jar to the classpath.

     [echo] ----------

     [echo] Building Libraries with 'debug'...

   [subant] No sub-builds to iterate on



-code-gen:

[mergemanifest] Found Deleted Target File

[mergemanifest] Merging AndroidManifest files into one.

[mergemanifest] Manifest merger disabled. Using project manifest only.

     [echo] Handling aidl files...

     [aidl] No AIDL files to compile.

     [echo] ----------

     [echo] Handling RenderScript files...

[renderscript] No RenderScript files to compile.

     [echo] ----------

     [echo] Handling Resources...

     [aapt] Generating resource IDs...

     [aapt] C:\DOCUME~1\PT\Desktop\COMTRA~1.MOB\bin\AndroidManifest.xml:4: error: No resource identifier found for attribute 'xlargeScreens' in package 'android'



BUILD FAILED

C:\Andriod\android-sdk\tools\ant\build.xml:647: The following error occurred while executing this line:

C:\Andriod\android-sdk\tools\ant\build.xml:688: null returned: 1



Total time: 1 second

OPERATION CANCELED
<DW>
____________________
set ANT_HOME=C:\PROGRA~1\Adobe\ADOBED~2.5\CONFIG~1\NATIVE~1\APACHE~1
set ANDROID_HOME=C:\Andriod\android-sdk
set JAVA_HOME=C:\PROGRA~1\Adobe\ADOBED~2.5\JDK
set PATH=%JAVA_HOME%\bin;%PATH%
cd C:\Andriod\ANDROI~1\PLATFO~2
C:\Andriod\android-sdk\platform-tools\adb.exe kill-server
____________________
</DW>

<DW>
____________________
set ANT_HOME=C:\PROGRA~1\Adobe\ADOBED~2.5\CONFIG~1\NATIVE~1\APACHE~1
set ANDROID_HOME=C:\Andriod\android-sdk
set JAVA_HOME=C:\PROGRA~1\Adobe\ADOBED~2.5\JDK
set PATH=%JAVA_HOME%\bin;%PATH%
cd C:\DOCUME~1\PT\Desktop\COMTRA~1.MOB
C:\WINDOWS\system32\cmd.exe /u /c C:\PROGRA~1\Adobe\ADOBED~2.5\CONFIG~1\NATIVE~1\APACHE~1\bin\ant.bat debug
____________________
</DW>
Buildfile: C:\DOCUME~1\PT\Desktop\COMTRA~1.MOB\build.xml



-set-mode-check:



-set-debug-files:



-check-env:

 [checkenv] Android SDK Tools Revision 21.1.0

 [checkenv] Installed at C:\Andriod\android-sdk



-setup:

     [echo] Project Name: mob3

  [gettype] Project Type: Application



-set-debug-mode:



-debug-obfuscation-check:



-pre-build:



-build-setup:

     [echo] Resolving Build Target for mob3...

[gettarget] Project Target:   Google APIs

[gettarget] Vendor:           Google Inc.

[gettarget] Platform Version: 2.2

[gettarget] API level:        8

     [echo] ----------

     [echo] Creating output directories if needed...

     [echo] ----------

     [echo] Resolving Dependencies for mob3...

[dependency] Library dependencies:

[dependency] No Libraries

[dependency] 

[dependency] ------------------

[dependency] API<=15: Adding annotations.jar to the classpath.

     [echo] ----------

     [echo] Building Libraries with 'debug'...

   [subant] No sub-builds to iterate on



-code-gen:

[mergemanifest] Found Deleted Target File

[mergemanifest] Merging AndroidManifest files into one.

[mergemanifest] Manifest merger disabled. Using project manifest only.

     [echo] Handling aidl files...

     [aidl] No AIDL files to compile.

     [echo] ----------

     [echo] Handling RenderScript files...

[renderscript] No RenderScript files to compile.

     [echo] ----------

     [echo] Handling Resources...

     [aapt] Generating resource IDs...

     [aapt] C:\DOCUME~1\PT\Desktop\COMTRA~1.MOB\bin\AndroidManifest.xml:4: error: No resource identifier found for attribute 'xlargeScreens' in package 'android'



BUILD FAILED

C:\Andriod\android-sdk\tools\ant\build.xml:647: The following error occurred while executing this line:

C:\Andriod\android-sdk\tools\ant\build.xml:688: null returned: 1



Total time: 1 second

你能帮我解决这个问题吗?我找不到关于这个问题的任何解决方案我需要设置什么才能创建移动应用程序吗?

提前致谢。

编辑:

AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:windowSoftInputMode="adjustPan"
 package="com.travelco.mob3" android:versionName="1.0" android:versionCode="1">   
  <supports-screens
        android:largeScreens="true"
        android:normalScreens="true"
        android:smallScreens="true"
        android:xlargeScreens="true"
        android:resizeable="true"
        android:anyDensity="true"
        />

    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.VIBRATE" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.RECEIVE_SMS" />
    <uses-permission android:name="android.permission.RECORD_AUDIO" />
    <uses-permission android:name="android.permission.RECORD_VIDEO"/>
    <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
    <uses-permission android:name="android.permission.READ_CONTACTS" />
    <uses-permission android:name="android.permission.WRITE_CONTACTS" />   
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />   
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.GET_ACCOUNTS" />
    <uses-permission android:name="android.permission.BROADCAST_STICKY" />


    <application android:icon="@drawable/icon" android:label="@string/app_name"
        android:debuggable="true">
        <activity android:name=".DefaultActivity" android:label="@string/app_name" 
                  android:configChanges="orientation|keyboardHidden">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

    <uses-sdk android:minSdkVersion="5" />
</manifest> 
4

3 回答 3

1

该错误似乎在 AndroidManifest.xml 文件的第 4 行:

error: No resource identifier found for attribute 'xlargeScreens' in package 'android'`

此属性是在 API 级别 9 中引入的。检查此链接http://developer.android.com/guide/topics/manifest/supports-screens-element.html#xlarge

所以你需要确保你的目标设置为高于 9。

于 2013-02-27T06:00:33.530 回答
1

我认为问题在于您的清单文件android:minSdkVersion="5"没有android:targetSdkVersion

因此,在您的<supports-screens/>标签内编译时,某些属性将不支持。SdkVersion="5"您会发现错误

error: No resource identifier found for attribute 'xlargeScreens' in package 'android'`

解决方案使用

android:minSdkVersion="9"或大于 9 或

通过设置android:targetSdkVersion="9" 或更高

所以将您的清单修改为:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:windowSoftInputMode="adjustPan"
 package="com.travelco.mob3" android:versionName="1.0" android:versionCode="1">

<uses-sdk android:minSdkVersion="5" 
          android:targetSdkVersion="16"/>

<supports-screens
    android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:xlargeScreens="true"
    android:resizeable="true"
    android:anyDensity="true"
    />

<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.RECORD_VIDEO"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.WRITE_CONTACTS" />   
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />   
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.BROADCAST_STICKY" />


<application android:icon="@drawable/icon" android:label="@string/app_name"
    android:debuggable="true">
    <activity android:name=".DefaultActivity" android:label="@string/app_name" 
              android:configChanges="orientation|keyboardHidden">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

或者您可以删除<supports-screens/>导致错误的参数(但这不是一个好方法。我不会推荐它)

于 2013-02-27T07:08:08.610 回答
0

有趣的。我遇到了同样的问题。问题原来是我已将我的项目目录备份到 CD 上。当我这样做时,这些“TRANS.TBL”文件被添加到每个目录中。从 CD 恢复项目后,我必须删除所有TRANS.TBL文件。ant我用不是eclipseBTW构建的。

于 2013-06-29T07:18:07.683 回答