不构建apk文件

时间:2013-02-27 05:53:22

标签: android cordova sdk dreamweaver

我是移动应用程序的新手。我正在使用Dreamweaver CS5.5。现在我已经尝试在youtube中关注一些构建移动应用程序的视频教程,我还安装了android SDK。但是当我尝试构建文件时,它总是给我一个错误消息 enter image description here

但是当我尝试构建和模拟时,只显示模拟器。 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> 

3 个答案:

答案 0 :(得分: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。

答案 1 :(得分: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"或更高

SO将您的清单修改为:

<?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/>参数(但这不是一个好方法。我不会推荐它)

答案 2 :(得分:0)

有趣。我遇到了同样的问题。问题是我将项目目录备份到CD。当我这样做时,这些'TRANS.TBL'文件被添加到每个目录中。从CD恢复我的项目后,我不得不删除所有TRANS.TBL文件。我使用ant而非eclipse BTW构建。