Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Oracle MAF : Unsupported major.minor version 52.0. Error while deploying on to Emulator

Praveen_28Dec 20 2016 — edited Jan 9 2017

Hi All,

     I am using below software versions for Oracle MAF development.

      JDeveloper : Studio Edition Version 12.2.1.0.0

      MAF Version : 2.3.3.0.42.161107.2233

      Android Studio : 2.2.3

      JDK : 1.8

I have installed SDK and Intel x86 Emulator Accelerator (HAXM) and did Android Virtual Device setup by following below link. [Installed Android 5.1.0 and created Device based on that]

http://docs.oracle.com/cd/E53569_01/tutorials/tut_jdev_maf_setup/tut_jdev_maf_setup_2.html

Able to launch launch newly created Virtual Device from AVD Manager.

In JDeveloper also, took update of Oracle MAF extension and did SDK configuration in Android Platform option in Tools --> Preferences --> Mobile Application Framework --> Android Platform as stated in below.

SDK Location : C:\Android\sdk

Android Platform Location : C:\Android\sdk\platforms\android-21

Android Build Tools Location : C:\Android\sdk\build-tools\25.0.2

I just created Sample Application with one feature and amx page and tried to deploy on to emulator using default deployment profile 'Android1'. But it ended up with below error.

Error Log:

11:01:12 AM] Command-line executed: "C:\Android\sdk\build-tools\25.0.2\dx.bat" --dex --debug --keep-classes --output "C:\JDeveloper\mywork\FirstApplication\deploy\Android2\classes.dex" "C:\JDeveloper\mywork\FirstApplication\deploy\Android2\classes" "C:\JDeveloper\mywork\FirstApplication\deploy\Android2\framework\build\jar\IDMMobileSDK.jar" "C:\JDeveloper\mywork\FirstApplication\deploy\Android2\framework\build\jar\javax.json.jar" "C:\JDeveloper\mywork\FirstApplication\deploy\Android2\framework\build\jar\JavaLauncher.jar" "C:\JDeveloper\mywork\FirstApplication\deploy\Android2\framework\build\jar\cordova.jar" "C:\JDeveloper\mywork\FirstApplication\deploy\Android2\framework\build\jar\DVMChannel.jar" "C:\JDeveloper\mywork\FirstApplication\deploy\Android2\framework\build\jar\NativeKeystore.jar" "C:\JDeveloper\mywork\FirstApplication\deploy\Android2\framework\build\jar\AND_ksoap.jar" "C:\JDeveloper\mywork\FirstApplication\deploy\Android2\framework\build\jar\Container.jar"

[11:01:12 AM] Deployment cancelled.

[11:01:12 AM] Deployment cancelled.

[11:01:12 AM] ---- Deployment incomplete ----.

[11:01:12 AM] Failed deployment to Android emulator. Encountered exception: oracle.jdeveloper.deploy.DeployException: Deployment failed due to one or more errors returned by 'C:\Android\sdk\build-tools\25.0.2\dx.bat'. The following is a summary of the returned error(s):

Command-line execution failed (Return code: 1)

java.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 52.0.

[11:01:12 AM] Deployment failed due to one or more errors returned by 'C:\Android\sdk\build-tools\25.0.2\dx.bat'. The following is a summary of the returned error(s):

Command-line execution failed (Return code: 1)

java.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 52.0

Did I miss anything? As per my observation, in Android SDK Manager, I am seeing status on Intel x86 Emulator Accelator(HAXM installer) as 'Not compatible with Windows' as shown in below. In order to solve this, I enabled Intel VT from Bios settings and reinstalled Android Studio again. After that also I am seeing same status. Will this cause above deployment issue?

pastedImage_11.png

Could you suggest on this?

Thanks,

Praveen.

Comments
Post Details
Added on Dec 20 2016
6 comments
2,713 views