Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-9021

Issue with Create AVD in Studio Preferences while using JDK 9

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Not Our Bug
    • Affects Version/s: Release 5.1.0
    • Fix Version/s: Release 5.1.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      Mac OS 10.13.2
      Studio: 5.1.0.201802081542
      Appc CLI: 7.0.2
      Daemon: 1.0.1
      Node: 8.9.1
      JDK: 9.0.4
      Ti SDK: 7.1.0.v20180222153733

    • Story Points:
      5
    • Sprint:
      2018 Sprint 05 Studio

      Description

      When system has JDK 9 installed then user cannot created avd's through studio preferences as an error is shown in device drop down in Create AVD screen

      Steps to Reproduce:
      1. On a system with JDK 9, open studio
      2. Go to Preferences -> Studio -> Platforms -> Android
      3. Click on Create AVD button

      Actual Result:
      An error is shown in Device drop down in Create AVD screen. Check the attached screenshot. Following is the error in logs:

      !ENTRY com.appcelerator.titanium.android.ui 1 0 2018-02-23 17:41:49.230
      !MESSAGE (Build 5.1.0.201802081542) [INFO]  Android Version received: 26.1.1
       
      !ENTRY com.aptana.core 1 0 2018-02-23 17:41:49.240
      !MESSAGE (Build 5.1.0.201802081542) [INFO] com.aptana.core/debug/shell Running process:
      Process: "/Users/ssekhri/Library/android-sdk-macosx/tools/bin/avdmanager" "list" "device" "--compact"
      Working directory: null
      Environment: null
       
      !ENTRY com.aptana.core 1 0 2018-02-23 17:41:50.086
      !MESSAGE (Build 5.1.0.201802081542) [INFO] com.aptana.core/debug/shell/output Process Error Output:
      Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
      	at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156)
      	at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75)
      	at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81)
      	at com.android.sdklib.tool.AvdManagerCli.run(AvdManagerCli.java:213)
      	at com.android.sdklib.tool.AvdManagerCli.main(AvdManagerCli.java:200)
      Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
      	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
      	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185)
      	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
      	... 5 more
       
       
      !ENTRY com.aptana.core 1 0 2018-02-23 17:41:50.088
      !MESSAGE (Build 5.1.0.201802081542) [INFO] com.aptana.core/debug/shell Running process:
      Process: "/Users/ssekhri/Library/android-sdk-macosx/tools/bin/avdmanager" "create" "avd" "--name" "DummyName"
      Working directory: null
      Environment: null
       
      !ENTRY com.aptana.core 1 0 2018-02-23 17:41:50.900
      !MESSAGE (Build 5.1.0.201802081542) [INFO] com.aptana.core/debug/shell/output Process Error Output:
      Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
      	at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156)
      	at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75)
      	at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81)
      	at com.android.sdklib.tool.AvdManagerCli.run(AvdManagerCli.java:213)
      	at com.android.sdklib.tool.AvdManagerCli.main(AvdManagerCli.java:200)
      Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
      	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
      	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185)
      	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
      	... 5 more
      

        Attachments

          Activity

            People

            • Assignee:
              kkolipaka Kondal Kolipaka (Inactive)
              Reporter:
              ssekhri Satyam Sekhri
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: