Uploaded image for project: 'Qt Tools for Android'
  1. Qt Tools for Android
  2. QTTA-94

org.json is not bundled in the JAR

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P0: Blocker
    • QtTAS 2.0
    • QtTAS 2.0
    • QtTAS: General
    • None
    • Android
    • 194b44ca4 (dev), 60d5a9e47 (2.0), 7f73c32d8 (dev), 9d5c4754e (2.0)

    Description

      So I guess this is missing from older versions. The plugin used to work well previously, but I didn't mess with the settings so this wasn't noticed previously.

      But yeah, you can't set the settings at the moment.

      Steps to reproduce:

      1. Install AS Hedgehog or Iguana
      2. Install plugin
      3. Attempt to set Qt settings

      Expected:

      Settings are set

      Reality:

      Settings are not set, no error popup is shown

      java.lang.NoClassDefFoundError: org/json/JSONException	at org.qtproject.qt.androidstudiotools.QtSettingsConfigurable.apply(QtSettingsConfigurable.java:43)	at com.intellij.openapi.options.ex.ConfigurableWrapper.apply(ConfigurableWrapper.java:187)	at com.intellij.openapi.options.newEditor.ConfigurableEditor.apply(ConfigurableEditor.java:320)	at com.intellij.openapi.options.newEditor.SettingsEditor$5.apply(SettingsEditor.java:205)	at com.intellij.openapi.options.newEditor.ConfigurableEditor$2.actionPerformed(ConfigurableEditor.java:65)	at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)	at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)	at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)	at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)	at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)	at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)	at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)	at java.desktop/java.awt.Component.processEvent(Unknown Source)	at java.desktop/java.awt.Container.processEvent(Unknown Source)	at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)	at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)	at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)	at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)	at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)	at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)	at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)	at java.desktop/java.awt.EventQueue$3.run(Unknown Source)	at java.desktop/java.awt.EventQueue$3.run(Unknown Source)	at java.base/java.security.AccessController.doPrivileged(Unknown Source)	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)	at java.base/java.security.AccessController.doPrivileged(Unknown Source)	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)	at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:667)	at com.intellij.ide.IdeEventQueue.dispatchMouseEvent(IdeEventQueue.kt:615)	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:570)	at com.intellij.ide.IdeEventQueue.access$_dispatchEvent(IdeEventQueue.kt:68)	at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:349)	at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:348)	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:787)	at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:348)	at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:343)	at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$1(IdeEventQueue.kt:995)	at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105)	at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:995)	at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$4(IdeEventQueue.kt:343)	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:829)	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:385)	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)	at java.desktop/java.awt.WaitDispatchSupport$2.run(Unknown Source)	at java.desktop/java.awt.WaitDispatchSupport$4.run(Unknown Source)	at java.desktop/java.awt.WaitDispatchSupport$4.run(Unknown Source)	at java.base/java.security.AccessController.doPrivileged(Unknown Source)	at java.desktop/java.awt.WaitDispatchSupport.enter(Unknown Source)	at java.desktop/java.awt.Dialog.lambda$show$2(Unknown Source)	at java.desktop/sun.awt.SunToolkit.performOnMainThreadIfNeeded(Unknown Source)	at java.desktop/java.awt.Dialog.show(Unknown Source)	at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:741)	at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:466)	at com.intellij.openapi.ui.DialogWrapper.doShow(DialogWrapper.java:1675)	at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1633)	at com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog(ShowSettingsUtilImpl.java:90)	at com.intellij.ide.actions.ShowSettingsAction.perform(ShowSettingsAction.java:60)	at com.intellij.ui.mac.MacOSApplicationProvider$Worker.initMacApplication$lambda$2$lambda$1(MacOSApplicationProvider.kt:71)	at com.intellij.ui.mac.MacOSApplicationProvider$Worker.submit$lambda$6(MacOSApplicationProvider.kt:170)	at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:209)	at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:21)	at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:191)	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:829)	at com.intellij.openapi.application.impl.ApplicationImpl$3.run(ApplicationImpl.java:454)	at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:79)	at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:122)	at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:41)	at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)	at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)	at java.desktop/java.awt.EventQueue$3.run(Unknown Source)	at java.desktop/java.awt.EventQueue$3.run(Unknown Source)	at java.base/java.security.AccessController.doPrivileged(Unknown Source)	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)	at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:667)	at com.intellij.ide.IdeEventQueue._dispatchEvent$lambda$7(IdeEventQueue.kt:571)	at com.intellij.openapi.application.impl.ApplicationImpl.withoutImplicitRead(ApplicationImpl.java:1444)	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:571)	at com.intellij.ide.IdeEventQueue.access$_dispatchEvent(IdeEventQueue.kt:68)	at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:349)	at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:348)	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:787)	at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:348)	at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:343)	at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$1(IdeEventQueue.kt:995)	at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105)	at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:995)	at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$4(IdeEventQueue.kt:343)	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:829)	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:385)	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)	at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)Caused by: java.lang.ClassNotFoundException: org.json.JSONException PluginClassLoader(plugin=PluginDescriptor(name=Qt Tools for Android Studio, id=org.qtproject.qt.androidstudiotools, descriptorPath=plugin.xml, path=~/Library/Application Support/Google/AndroidStudio2023.1/plugins/QtTAS-2.0.0-RC.jar, version=2.0.0, package=null, isBundled=false), packagePrefix=null, instanceId=129, state=active)	at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.kt:150)	at java.base/java.lang.ClassLoader.loadClass(Unknown Source)	... 105 more

      Attachments

        Issue Links

          For Gerrit Dashboard: QTTA-94
          # Subject Branch Project Status CR V

          Activity

            People

              nikunj Nikunj Arora
              olvuolte Olli Vuolteenaho
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes