Dreamweaver安卓应用开发构建错误?

时间:2012-03-20 22:35:30

标签: android dreamweaver

我正在使用Dreamweaver 5.5尝试一个简单的hello world android应用程序。但是当我点击构建并模拟我得到消息

Dreamweaver is unable to open "apptest" in the emulator. Please consult the build log at

并构建日志主要错误

[echo] Install file not specified.

 [echo] 

 [echo] 'ant install' now requires the build target to be specified as well.

 [echo] 

 [echo] 

BUILD FAILED

C:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml:1124: The following error occurred while executing this line:

C:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml:1191: No message

任何人都知道如何解决这个问题? 问候

编辑1:构建似乎是成功的,但仍然不会在模拟器中购物。我只是看到模拟器,但没有应用程序。我不明白为什么buildlog.log说“无法启动”

BUILD SUCCESSFUL

Total time: 6 seconds


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

Waiting for Android emulator to bootERROR: failed to launch Android emulator

编辑2:现在DMW给出了消息:

  

apptest的模拟已成功完成。您的   applicationbinary位于.... -debug.apk

但仍未出现在模拟器中,buildlog.log

Installing app into Android emulator
<DW>
____________________
set ANT_HOME=C:\PROGRA~2\Adobe\ADOBED~2.5\CONFIG~1\NATIVE~1\APACHE~1
set ANDROID_HOME=C:\PROGRA~2\Android\ANDROI~1
set JAVA_HOME=C:\PROGRA~2\Adobe\ADOBED~2.5\JDK
set PATH=%JAVA_HOME%\bin;%PATH%
cd C:\Users\mainuser\Desktop\COMFUL~1.APP
C:\windows\SysWOW64\cmd.exe /u /c C:\PROGRA~2\Adobe\ADOBED~2.5\CONFIG~1\NATIVE~1\APACHE~1\bin\ant.bat install
____________________
</DW>
Buildfile: C:\Users\mainuser\Desktop\COMFUL~1.APP\build.xml



install:

     [echo] Install file not specified.

     [echo] 

     [echo] 'ant install' now requires the build target to be specified as well.

     [echo] 

     [echo] 

     [echo]     ant debug install

     [echo]     ant release install

     [echo]     ant instrument install

     [echo] This will build the given package and install it.

     [echo] 

     [echo] Alternatively, you can use

     [echo]     ant installd

     [echo]     ant installr

     [echo]     ant installi

     [echo]     ant installt

     [echo] to only install an existing package (this will not rebuild the package.)



BUILD FAILED

C:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml:1124: The following error occurred while executing this line:

C:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml:1191: No message



Total time: 0 seconds

Running app in Android emulator
<DW>
____________________
set ANT_HOME=C:\PROGRA~2\Adobe\ADOBED~2.5\CONFIG~1\NATIVE~1\APACHE~1
set ANDROID_HOME=C:\PROGRA~2\Android\ANDROI~1
set JAVA_HOME=C:\PROGRA~2\Adobe\ADOBED~2.5\JDK
set PATH=%JAVA_HOME%\bin;%PATH%
cd C:\PROGRA~2\Android\ANDROI~1\PLATFO~2
C:\windows\SysWOW64\cmd.exe /u /c C:\PROGRA~2\Adobe\ADOBED~2.5\CONFIG~1\NATIVE~1\DWPHON~1\android\scripts\ANDROI~2.BAT com.mainuser.apptest C:\PROGRA~2\Android\ANDROI~1
____________________
</DW>
Starting: Intent { act=android.intent.action.MAIN cmp=com.mainuser.apptest/.DefaultActivity }



Error type 3



Error: Activity class {com.mainuser.apptest/com.mainuser.apptest.DefaultActivity} does not exist.




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

1 个答案:

答案 0 :(得分:2)

这可以帮助您解决构建目标问题(在教程的底部)http://www.tricedesigns.com/2011/11/01/building-phonegap-applications-with-dreamweaver/