Dreamweaver Phonegap Android 模拟问题
我在使用 Jquery Mobile(phonegap) 模板使用 Dreamweaver 模拟器时遇到问题。具体来说,模拟器启动,但应用程序未加载,并且该应用程序也没有应用程序图标。当我构建并模拟消息“Dreamweaver 无法打开 Tour Finder,请查阅构建日志。我安装了 dreamweaver 5.5 和更新。我还安装了最新的 android sdk 和 sdk 工具。我能够模拟应用程序通过 eclipse 任何帮助都是值得赞赏的。
<DW>
____________________
set ANT_HOME=C:\PROGRA~2\Adobe\ADOBED~2.5\CONFIG~1\NATIVE~1\APACHE~1
set ANDROID_HOME=D:\android-sdk
set JAVA_HOME=C:\PROGRA~2\Adobe\ADOBED~2.5\JDK
set PATH=%JAVA_HOME%\bin;%PATH%
cd D:\ANDROI~1\PLATFO~2
D:\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~2\Adobe\ADOBED~2.5\CONFIG~1\NATIVE~1\APACHE~1
set ANDROID_HOME=D:\android-sdk
set JAVA_HOME=C:\PROGRA~2\Adobe\ADOBED~2.5\JDK
set PATH=%JAVA_HOME%\bin;%PATH%
cd D:\ANDROI~1\tools
C:\Windows\SysWOW64\cmd.exe /u /c "D:\android-sdk\tools\emulator.exe -partition-size 1024 -cpu-delay 0 -no-boot-anim -avd Android_2.3.3_API_10_WVGA_480x800"
____________________
</DW>
WARNING: no splash screen was specified in app settings. using default.
<DW>
____________________
set ANT_HOME=C:\PROGRA~2\Adobe\ADOBED~2.5\CONFIG~1\NATIVE~1\APACHE~1
set ANDROID_HOME=D:\android-sdk
set JAVA_HOME=C:\PROGRA~2\Adobe\ADOBED~2.5\JDK
set PATH=%JAVA_HOME%\bin;%PATH%
cd C:\Users\David\Desktop\COMEXP~1.TOU
C:\Windows\SysWOW64\cmd.exe /u /c C:\PROGRA~2\Adobe\ADOBED~2.5\CONFIG~1\NATIVE~1\APACHE~1\bin\ant.bat debug
____________________
</DW>
Buildfile: C:\Users\David\Desktop\COMEXP~1.TOU\build.xml
[setup] Android SDK Tools Revision 13
[setup] Project Target: Google APIs
[setup] Vendor: Google Inc.
[setup] Platform Version: 2.2
[setup] API level: 8
[setup]
[setup] ------------------
[setup] Resolving library dependencies:
[setup] No library dependencies.
[setup]
[setup] ------------------
[setup]
[setup] WARNING: Attribute minSdkVersion in AndroidManifest.xml (2) is lower than the project target API level (8)
[setup]
[setup] Importing rules file: tools\ant\main_rules.xml
-debug-obfuscation-check:
-set-debug-mode:
-compile-tested-if-test:
-pre-build:
-dirs:
[echo] Creating output directories if needed...
-aidl:
[echo] Compiling aidl files into Java classes...
-renderscript:
[echo] Compiling RenderScript files into Java classes and RenderScript bytecode...
-resource-src:
[echo] Generating R.java / Manifest.java from the resources...
-pre-compile:
compile:
[javac] D:\android-sdk\tools\ant\main_rules.xml:385: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 1 source file to C:\Users\David\Desktop\COMEXP~1.TOU\bin\classes
-post-compile:
-obfuscate:
-dex:
[echo] Converting compiled files and external libraries into C:\Users\David\Desktop\COMEXP~1.TOU \bin\classes.dex...
-package-resources:
[echo] Packaging resources
[aapt] Creating full resource package...
[aapt.exe] Warning: AndroidManifest.xml already defines debuggable (in http://schemas.android.com/apk/res/android); using existing value in manifest.
-package-debug-sign:
[apkbuilder] Creating tour_finder-debug-unaligned.apk and signing it with a debug key...
debug:
[echo] Running zip align on final apk...
[echo] Debug Package: C:\Users\David\Desktop\COMEXP~1.TOU\bin\tour_finder-debug.apk
BUILD SUCCESSFUL
Total time: 13 seconds
<DW>
____________________
set ANT_HOME=C:\PROGRA~2\Adobe\ADOBED~2.5\CONFIG~1\NATIVE~1\APACHE~1
set ANDROID_HOME=D:\android-sdk
set JAVA_HOME=C:\PROGRA~2\Adobe\ADOBED~2.5\JDK
set PATH=%JAVA_HOME%\bin;%PATH%
cd D:\ANDROI~1\PLATFO~2
D:\android-sdk\platform-tools\adb.exe kill-server
____________________
</DW>
Waiting for Android emulator to bootERROR: failed to launch Android emulator
I'm having problems using the emulator for dreamweaver using the Jquery Mobile(phonegap) template. Specifically the emulator starts but the app doesn't load and there is no app icon for the app either. When i build and emulate the message "Dreamweaver is unable to open Tour Finder, please consult the build log. I have dreamweaver 5.5 and updates installed. I have the up to date android sdk and sdk tools installed also. I am able to emulate apps through eclipse. Any help is appreciated. Here is the build log:
<DW>
____________________
set ANT_HOME=C:\PROGRA~2\Adobe\ADOBED~2.5\CONFIG~1\NATIVE~1\APACHE~1
set ANDROID_HOME=D:\android-sdk
set JAVA_HOME=C:\PROGRA~2\Adobe\ADOBED~2.5\JDK
set PATH=%JAVA_HOME%\bin;%PATH%
cd D:\ANDROI~1\PLATFO~2
D:\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~2\Adobe\ADOBED~2.5\CONFIG~1\NATIVE~1\APACHE~1
set ANDROID_HOME=D:\android-sdk
set JAVA_HOME=C:\PROGRA~2\Adobe\ADOBED~2.5\JDK
set PATH=%JAVA_HOME%\bin;%PATH%
cd D:\ANDROI~1\tools
C:\Windows\SysWOW64\cmd.exe /u /c "D:\android-sdk\tools\emulator.exe -partition-size 1024 -cpu-delay 0 -no-boot-anim -avd Android_2.3.3_API_10_WVGA_480x800"
____________________
</DW>
WARNING: no splash screen was specified in app settings. using default.
<DW>
____________________
set ANT_HOME=C:\PROGRA~2\Adobe\ADOBED~2.5\CONFIG~1\NATIVE~1\APACHE~1
set ANDROID_HOME=D:\android-sdk
set JAVA_HOME=C:\PROGRA~2\Adobe\ADOBED~2.5\JDK
set PATH=%JAVA_HOME%\bin;%PATH%
cd C:\Users\David\Desktop\COMEXP~1.TOU
C:\Windows\SysWOW64\cmd.exe /u /c C:\PROGRA~2\Adobe\ADOBED~2.5\CONFIG~1\NATIVE~1\APACHE~1\bin\ant.bat debug
____________________
</DW>
Buildfile: C:\Users\David\Desktop\COMEXP~1.TOU\build.xml
[setup] Android SDK Tools Revision 13
[setup] Project Target: Google APIs
[setup] Vendor: Google Inc.
[setup] Platform Version: 2.2
[setup] API level: 8
[setup]
[setup] ------------------
[setup] Resolving library dependencies:
[setup] No library dependencies.
[setup]
[setup] ------------------
[setup]
[setup] WARNING: Attribute minSdkVersion in AndroidManifest.xml (2) is lower than the project target API level (8)
[setup]
[setup] Importing rules file: tools\ant\main_rules.xml
-debug-obfuscation-check:
-set-debug-mode:
-compile-tested-if-test:
-pre-build:
-dirs:
[echo] Creating output directories if needed...
-aidl:
[echo] Compiling aidl files into Java classes...
-renderscript:
[echo] Compiling RenderScript files into Java classes and RenderScript bytecode...
-resource-src:
[echo] Generating R.java / Manifest.java from the resources...
-pre-compile:
compile:
[javac] D:\android-sdk\tools\ant\main_rules.xml:385: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 1 source file to C:\Users\David\Desktop\COMEXP~1.TOU\bin\classes
-post-compile:
-obfuscate:
-dex:
[echo] Converting compiled files and external libraries into C:\Users\David\Desktop\COMEXP~1.TOU \bin\classes.dex...
-package-resources:
[echo] Packaging resources
[aapt] Creating full resource package...
[aapt.exe] Warning: AndroidManifest.xml already defines debuggable (in http://schemas.android.com/apk/res/android); using existing value in manifest.
-package-debug-sign:
[apkbuilder] Creating tour_finder-debug-unaligned.apk and signing it with a debug key...
debug:
[echo] Running zip align on final apk...
[echo] Debug Package: C:\Users\David\Desktop\COMEXP~1.TOU\bin\tour_finder-debug.apk
BUILD SUCCESSFUL
Total time: 13 seconds
<DW>
____________________
set ANT_HOME=C:\PROGRA~2\Adobe\ADOBED~2.5\CONFIG~1\NATIVE~1\APACHE~1
set ANDROID_HOME=D:\android-sdk
set JAVA_HOME=C:\PROGRA~2\Adobe\ADOBED~2.5\JDK
set PATH=%JAVA_HOME%\bin;%PATH%
cd D:\ANDROI~1\PLATFO~2
D:\android-sdk\platform-tools\adb.exe kill-server
____________________
</DW>
Waiting for Android emulator to bootERROR: failed to launch Android emulator
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我遇到了同样的问题。
我遇到了这个解决方案: http://forums.adobe.com/message/3997853它有效!但是,在 DW 中执行“构建和仿真”(或者只执行 2 次“构建和仿真”)之前,我必须让模拟器完全启动并运行。
I've came accross with the same problem.
I've runned into this solution: http://forums.adobe.com/message/3997853 and it works! However i have to have the emulator fully booted and running before i do "Build and Emulate" in DW (or just do 2x "Build and Emulate").