我是移动应用程序的新手。我正在使用 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>