Hi,
I developed a plugin by using IntelliJ IDEA, and once I install it in Android Studio and I try to run it, it gives me the following error:
Code:
17:46 Plugin Error: TaskAnnotationPlugin threw an uncaught NoClassDefFoundError. Disable Plugin
17:46 NoClassDefFoundError: javafx/embed/swing/JFXPanel
Do you know how can I fix it, please??? Thank you!!
The details of the error are:
Code:
javafx/embed/swing/JFXPanel
java.lang.NoClassDefFoundError: javafx/embed/swing/JFXPanel
at main.PluginAction.actionPerformed(PluginAction.java:14)
at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:197)
at com.intellij.openapi.application.TransactionGuardImpl.runSyncTransaction(TransactionGuardImpl.java:88)
at com.intellij.openapi.application.TransactionGuardImpl.submitTransactionAndWait(TransactionGuardImpl.java:156)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:211)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.lambda$actionPerformed$2(ActionMenuItem.java:304)
at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:905)
at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFocusManagerImpl.java:124)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:284)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.lambda$fireActionPerformed$0(ActionMenuItem.java:112)
at com.intellij.openapi.application.TransactionGuardImpl.runSyncTransaction(TransactionGuardImpl.java:88)
at com.intellij.openapi.application.TransactionGuardImpl.access$300(TransactionGuardImpl.java:40)
at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:113)
at com.intellij.openapi.application.TransactionGuardImpl.submitTransaction(TransactionGuardImpl.java:123)
at com.intellij.openapi.application.TransactionGuard.submitTransaction(TransactionGuard.java:109)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:112)
at com.intellij.ui.plaf.beg.BegMenuItemUI.doClick(BegMenuItemUI.java:513)
at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:45)
at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:533)
at java.awt.Component.processMouseEvent(Component.java:6533)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6298)
at java.awt.Container.processEvent(Container.java:2236)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2294)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
at java.awt.Container.dispatchEventImpl(Container.java:2280)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.awt.EventQueue$4.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:795)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:627)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:387)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.lang.ClassNotFoundException: javafx.embed.swing.JFXPanel PluginClassLoader[TaskAnnotationPlugin, 1.0]
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:64)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 54 more
Related
Code:
D:\My Documents\Downloads\apktool\apktool\apktool>apktool if framework-res.apk
Exception in thread "main" java.lang.UnsupportedClassVersionError: brut/apktool/
Main : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14
1)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: brut.apktool.Main. Program will exit.
it works on JB4.1 all right...but when I compiled JB4.2 apps and enter "apktool if framework-res.apk",it error...
Im used apktool last Version...
I didn't had any problem in installing it!
Try using the previous version
a546109781 said:
Code:
D:\My Documents\Downloads\apktool\apktool\apktool>apktool if framework-res.apk
Exception in thread "main" java.lang.UnsupportedClassVersionError: brut/apktool/
Main : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14
1)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: brut.apktool.Main. Program will exit.
it works on JB4.1 all right...but when I compiled JB4.2 apps and enter "apktool if framework-res.apk",it error...
Im used apktool last Version...
Click to expand...
Click to collapse
A problem with your java, have the latest one
Hi everyone,
I hope I am posting in the right thread. I am getting errors related to xposed repeatedly in my logcat. This could be because of a module that wasn't updated yet for the latest version of xposed but I can't seem to find out which one or this could be because of other reasons. I am posting here hoping to find a resolution.
[ 06-04 13:00:07.202 16150:16150 E/Xposed ]
java.lang.NoSuchMethodError: com.android.internal.telephony.PhoneSubInfo#getDeviceId()#exact
at de.robv.android.xposed.XposedHelpers.findMethodExact(XposedHelpers.java:339)
at de.robv.android.xposed.XposedHelpers.findAndHookMethod(XposedHelpers.java:176)
at de.robv.android.xposed.XposedHelpers.findAndHookMethod(XposedHelpers.java:251)
at com.phoneinfo.changerpro.hooks.f.a(Unknown Source)
at com.phoneinfo.changerpro.hooks.MainHook.handleLoadPackage(Unknown Source)
at de.robv.android.xposed.IXposedHookLoadPackage$Wrapper.handleLoadPackage(IXposedHookLoadPackage.java:34)
at de.robv.android.xposed.callbacks.XC_LoadPackage.call(XC_LoadPackage.java:61)
at de.robv.android.xposed.callbacks.XCallback.callAll(XCallback.java:106)
at de.robv.android.xposed.XposedBridge$1.beforeHookedMethod(XposedBridge.java:193)
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:720)
at android.app.ActivityThread.handleBindApplication(<Xposed>)
at android.app.ActivityThread.-wrap1(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1424)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5471)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
I appreciate any kind of suggestions. Thanks.
why not disabling all modules and then checking one by one?
it seems one of your modules is designed for a different variant of Android (one that has the method com.android.internal.telephony.PhoneSubInfo#getDev iceId()), or the module works but isn't implemented well to avoid the exception in logcat
gitfib said:
why not disabling all modules and then checking one by one?
it seems one of your modules is designed for a different variant of Android (one that has the method com.android.internal.telephony.PhoneSubInfo#getDev iceId()), or the module works but isn't implemented well to avoid the exception in logcat
Click to expand...
Click to collapse
Thanks, I'll try doing that.
Sent from my "i9300/1+2" powered by Carbon/RR
Fueled by 7000mAh ZeroLemon Battery
Hello everyone, i want to connect file shared on my windows
I make app android to view file on any windows by share file
but i have a problem
please help me!
this is my code:
NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication("","wd","admin123");
String path = "smb://10.10.120.195/Share/a.txt";
try {
SmbFile file = new SmbFile(path, auth);
file.connect();
}
catch(Exception e)
{
}
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ problem
D/libc-netbsd: [getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
D/AndroidRuntime: Shutting down VM
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.admin.myapplication, PID: 12663
java.lang.ExceptionInInitializerError
at jcifs.netbios.NbtAddress.getWINSAddress(NbtAddress.java:533)
at jcifs.UniAddress.<clinit>(UniAddress.java:62)
at jcifs.smb.SmbFile.getFirstAddress(SmbFile.java:922)
at jcifs.smb.SmbFile.connect(SmbFile.java:1012)
at com.example.admin.myapplication.MainActivity.onCreate(MainActivity.java:31)
at android.app.Activity.performCreate(Activity.java:6309)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1113)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2519)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2654)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1488)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:207)
at android.app.ActivityThread.main(ActivityThread.java:5728)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)
Caused by: android.os.NetworkOnMainThreadException
at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1288)
at java.net.InetAddress.lookupHostByName(InetAddress.java:432)
at java.net.InetAddress.getLocalHost(InetAddress.java:410)
at jcifs.netbios.NbtAddress.<clinit>(NbtAddress.java:187)
at jcifs.netbios.NbtAddress.getWINSAddress(NbtAddress.java:533)*
at jcifs.UniAddress.<clinit>(UniAddress.java:62)*
at jcifs.smb.SmbFile.getFirstAddress(SmbFile.java:922)*
at jcifs.smb.SmbFile.connect(SmbFile.java:1012)*
at com.example.admin.myapplication.MainActivity.onCreate(MainActivity.java:31)*
at android.app.Activity.performCreate(Activity.java:6309)*
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1113)*
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2519)*
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2654)*
at android.app.ActivityThread.-wrap11(ActivityThread.java)*
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1488)*
at android.os.Handler.dispatchMessage(Handler.java:111)*
at android.os.Looper.loop(Looper.java:207)*
at android.app.ActivityThread.main(ActivityThread.java:5728)*
at java.lang.reflect.Method.invoke(Native Method)*
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)*
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)*
I/System: FinalizerDaemon: finalize objects = 1
help me! please!
Reading through the error you will see that is is caused by Network on main thread exception.
In Android you are not allowed to do network calls on the main application thread. You need to use a separate AsyncTask. See this Stack Overflow thread.
http://stackoverflow.com/questions/6343166/how-to-fix-android-os-networkonmainthreadexception
java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: The current thread must have a looper!
at com.google.common.base.Throwables.propagate181357)
at X.0Jt.O49634)
at X.0NP.run57055)
at java.lang.Thread.run(Thread.java:760)
Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: The current thread must have a looper!
at java.util.concurrent.FutureTask.report(FutureTask.java:94)
at java.util.concurrent.FutureTask.get(FutureTask.java:164)
at X.0Jt.O49623)
... 2 more
Caused by: java.lang.IllegalStateException: The current thread must have a looper!
at android.view.Choreographer$1.initialValue(Choreographer.java:103)
at android.view.Choreographer$1.initialValue(Choreographer.java:100)
at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:160)
at java.lang.ThreadLocal.get(ThreadLocal.java:150)
at android.view.Choreographer.getInstance(Choreographer.java:233)
at com.facebook.ui.choreographer.DefaultChoreographerWrapper_API16.<init>360048)
at com.facebook.ui.choreographer.DefaultChoreographerWrapper_API16.B360051)
at X.22g.B()
at X.0H4.B()
at X.0K8.A50149)
at X.0K9.get50159)
at X.1d4.C359623)
at X.1d4.B359618)
at X.1d2.B359589)
at X.HFO.<init>2266615)
at X.HFR.<init>2266636)
at X.HFR.B2266643)
at X.2J6.<init>510120)
at X.2J6.C510138)
at X.2J6.B510127)
at X.ME3.B2860601)
at X.OYQ.B()
at X.0H4.B()
at X.0K6.A50118)
at X.0K7.get50136)
at X.NVg.initialize2991449)
at X.0Ve.init79295)
at X.0Jr.A49323)
at X.0Ob.run60876)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
at X.0OF.run59866)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at X.0Km.run51485)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at X.0OR.run60522)
... 1 more
It happens only in Facebook app
Does anybody has to handle without this? And od course found solutions?
I've the same problem, and the same callstack log as yours. I'm using a Oneplus 3 device with Android 8.0.0
It seems to happen with the latest faccebook update, but I've no idea why it crashes...
Hello, I Have a Very Specific problem, It Only happens when i Copy something to clipboard
If anyone can help me
The Log is Here -
java.lang.SecurityException: Permission Denial: getCurrentUser() from pid=26100, uid=10173 requires android.permission.INTERACT_ACROSS_USERS
at android.os.Parcel.createException(Parcel.java:1966)
at android.os.Parcel.readException(Parcel.java:1934)
at android.os.Parcel.readException(Parcel.java:1884)
at android.content.IClipboard$Stub$Proxy.setPrimaryClip(IClipboard.java:194)
at android.content.ClipboardManager.setPrimaryClip(ClipboardManager.java:128)
at com.google.android.apps.authenticator.AuthenticatorActivity.copyStringToClipboard(AuthenticatorActivity.java:595)
at com.google.android.apps.authenticator.AuthenticatorActivity.access$1000(AuthenticatorActivity.java:107)
at com.google.android.apps.authenticator.AuthenticatorActivity$9.copyCodeToClipboard(AuthenticatorActivity.java:554)
at com.google.android.apps.authenticator.AuthenticatorActivity$9.updateCabForAccount(AuthenticatorActivity.java:533)
at com.google.android.apps.authenticator.AuthenticatorActivity$9.onItemCheckedStateChanged(AuthenticatorActivity.java:525)
at android.widget.AbsListView$MultiChoiceModeWrapper.onItemCheckedStateChanged(AbsListView.java:9538)
at android.widget.AbsListView.setItemChecked(AbsListView.java:1599)
at android.widget.AbsListView.performLongPress(AbsListView.java:4270)
at android.widget.AbsListView$CheckForLongPress.run(AbsListView.java:4177)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7078)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964)
Caused by: android.os.RemoteException: Remote stack trace:
at com.android.server.am.UserController.getCurrentUser(Unknown Source:90)
at com.android.server.am.ActivityManagerService.getCurrentUser(Unknown Source:2)
at android.app.ActivityManager.getCurrentUser(ActivityManager.java:4852)
at com.samsung.android.knox.SemPersonaManager.getFocusedUser(SemPersonaManager.java:2032)
at com.android.server.clipboard.ClipboardService$ClipboardImpl.getPersonaId(Unknown Source:13)
Im having a similar issue but only after rooting on an S7.
I'm able to copy text from any edit Text Box as normal but any app using the "Copy To Clipboard" method fails with clipboard errors.
LOG:
System.err: at android.content.IClipboard$Stub$Proxy.setPrimaryCl ip(ClipboardManager.java: 181)
System.err: at android.content.IClipboardManager.setPrimaryClip(C lipboardManager.java: 155)
System.err: at com.google.android.apps.docs.drive.clipboard.SendT extToClipboardActivity.onCreate(PG:27)
qounik said:
Hello, I Have a Very Specific problem, It Only happens when i Copy something to clipboard
If anyone can help me
The Log is Here -
java.lang.SecurityException: Permission Denial: getCurrentUser() from pid=26100, uid=10173 requires android.permission.INTERACT_ACROSS_USERS
at android.os.Parcel.createException(Parcel.java:1966)
at android.os.Parcel.readException(Parcel.java:1934)
at android.os.Parcel.readException(Parcel.java:1884)
at android.content.IClipboard$Stub$Proxy.setPrimaryClip(IClipboard.java:194)
at android.content.ClipboardManager.setPrimaryClip(ClipboardManager.java:128)
at com.google.android.apps.authenticator.AuthenticatorActivity.copyStringToClipboard(AuthenticatorActivity.java:595)
at com.google.android.apps.authenticator.AuthenticatorActivity.access$1000(AuthenticatorActivity.java:107)
at com.google.android.apps.authenticator.AuthenticatorActivity$9.copyCodeToClipboard(AuthenticatorActivity.java:554)
at com.google.android.apps.authenticator.AuthenticatorActivity$9.updateCabForAccount(AuthenticatorActivity.java:533)
at com.google.android.apps.authenticator.AuthenticatorActivity$9.onItemCheckedStateChanged(AuthenticatorActivity.java:525)
at android.widget.AbsListView$MultiChoiceModeWrapper.onItemCheckedStateChanged(AbsListView.java:9538)
at android.widget.AbsListView.setItemChecked(AbsListView.java:1599)
at android.widget.AbsListView.performLongPress(AbsListView.java:4270)
at android.widget.AbsListView$CheckForLongPress.run(AbsListView.java:4177)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7078)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964)
Caused by: android.os.RemoteException: Remote stack trace:
at com.android.server.am.UserController.getCurrentUser(Unknown Source:90)
at com.android.server.am.ActivityManagerService.getCurrentUser(Unknown Source:2)
at android.app.ActivityManager.getCurrentUser(ActivityManager.java:4852)
at com.samsung.android.knox.SemPersonaManager.getFocusedUser(SemPersonaManager.java:2032)
at com.android.server.clipboard.ClipboardService$ClipboardImpl.getPersonaId(Unknown Source:13)
Click to expand...
Click to collapse
Are you rooted/running xposed? I have a fix.
elesbb said:
Are you rooted/running xposed? I have a fix.
Click to expand...
Click to collapse
Yes i am Rooted With Magisk/Exposed
qounik said:
Yes i am Rooted With Magisk/Exposed
Click to expand...
Click to collapse
Install the attached xposed module in the post found by going to this link: https://forum.xda-developers.com/showthread.php?p=80495057
Sent from my SM-G930P using Tapatalk