我正在尝试使用Windows 10笔记本电脑中的Dreamweaver cs5.5构建一个Android应用程序

时间:2016-05-26 14:57:17

标签: android windows-10 dreamweaver android-sdk-tools

我正在尝试使用Windows 10笔记本电脑中的dreamweaver cs5.5构建一个Android应用程序。我在Dreamweaver中构建和模拟我的代码时遇到错误。我在我的系统中安装了java jdk 1.8,并且我还安装了带有Android N预览的SDK以及所有必要的构建工具,但是当我在完成编码后选择构建和模拟按钮时,会弹出一个新的窗口"建筑&#34 ;. 10秒或更长时间后,窗口消失,没有任何消息。当我检查buildinglog文件时,我看到了消息:

<DW>
____________________
set ANT_HOME=C:\PROGRA~2\Adobe\ADOBED~2.5\CONFIG~1\NATIVE~1\APACHE~1
set ANDROID_HOME=C:\Users\EDEN\AppData\Local\Android\android-sdk
set JAVA_HOME=C:\PROGRA~2\Adobe\ADOBED~2.5\JDK
set PATH=%JAVA_HOME%\bin;%PATH%
cd C:\Users\EDEN\AppData\Local\Android\ANDROI~1\PLATFO~2
C:\Users\EDEN\AppData\Local\Android\android-sdk\platform-tools\adb.exe devices
____________________
</DW>
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=C:\Users\EDEN\AppData\Local\Android\android-sdk
set JAVA_HOME=C:\PROGRA~2\Adobe\ADOBED~2.5\JDK
set PATH=%JAVA_HOME%\bin;%PATH%
cd C:\Users\EDEN\AppData\Local\Android\ANDROI~1\tools
C:\Windows\SysWOW64\cmd.exe /u /c "C:\Users\EDEN\AppData\Local\Android\android-sdk\tools\emulator.exe -partition-size 1024 -cpu-delay 0 -no-boot-anim -avd avd"
____________________
</DW>

<DW>
____________________
set ANT_HOME=C:\PROGRA~2\Adobe\ADOBED~2.5\CONFIG~1\NATIVE~1\APACHE~1
set ANDROID_HOME=C:\Users\EDEN\AppData\Local\Android\android-sdk
set JAVA_HOME=C:\PROGRA~2\Adobe\ADOBED~2.5\JDK
set PATH=%JAVA_HOME%\bin;%PATH%
cd C:\Users\EDEN\Desktop\ORGFAN~1.REM
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\EDEN\Desktop\ORGFAN~1.REM\build.xml



-set-mode-check:



-set-debug-files:



-check-env:

 [checkenv] Android SDK Tools Revision 24.4.1

 [checkenv] Installed at C:\Users\EDEN\AppData\Local\Android\android-sdk



-setup:

     [echo] Project Name: remedies

  [gettype] Project Type: Application



-set-debug-mode:



-debug-obfuscation-check:



-pre-build:



-build-setup:

[getbuildtools] Using latest Build Tools: 23.0.3

     [echo] Resolving Build Target for remedies...

[gettarget] Project Target:   Android N (Preview)

[gettarget] API level:        N

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

     [echo] Creating output directories if needed...

    [mkdir] Created dir: C:\Users\EDEN\Desktop\ORGFAN~1.REM\bin\rsObj

    [mkdir] Created dir: C:\Users\EDEN\Desktop\ORGFAN~1.REM\bin\rsLibs

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

     [echo] Resolving Dependencies for remedies...

[dependency] Library dependencies:

[dependency] No Libraries

[dependency] 

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

 [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...

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

     [echo] Handling Resources...

     [aapt] Found Deleted Target File

     [aapt] Generating resource IDs...

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

     [echo] Handling BuildConfig class...

[buildconfig] Generating BuildConfig class.



-pre-compile:



-compile:

    [javac] Compiling 3 source files to C:\Users\EDEN\Desktop\ORGFAN~1.REM\bin\classes

    [javac] C:\Users\EDEN\Desktop\ORGFAN~1.REM\src\org\faned\remedies\DefaultActivity.java:3: cannot access android.app.Activity

    [javac] bad class file: android\app\Activity.class(android\app:Activity.class)

    [javac] class file has wrong version 52.0, should be 50.0

    [javac] Please remove or make sure it appears in the correct subdirectory of the classpath.

    [javac] import android.app.Activity;

    [javac]                   ^



BUILD FAILED

C:\Users\EDEN\AppData\Local\Android\android-sdk\tools\ant\build.xml:716: The following error occurred while executing this line:

C:\Users\EDEN\AppData\Local\Android\android-sdk\tools\ant\build.xml:730: Compile failed; see the compiler error output for details.



Total time: 28 seconds

OPERATION CANCELED

我需要你的帮助。

1 个答案:

答案 0 :(得分:0)

似乎您的Java运行时版本是1.8,但您的编译器版本(javac)是1.6。我认为您应该将JAVA_HOME更改为您安装JDK 1.8的目录。

以下相同主题可以帮助您解决问题:

https://stackoverflow.com/questions/27069743/bad-class-file-failed-the-ant-build

Dreamweaver + Phonegap startup 2