java.lang.RuntimeException

Unable to instantiate activity ComponentInfo{ch.moritzhuber.serversocket.encryption2/xxx.serversocket.encryption2.DHKeyAgreement2}: java.lang.IllegalAccessException: void ch.moritzhuber.serversocket.encryption2.DHKeyAgreement2.<init>() is not accessible from java.lang.Class<android.app.Instrumentation>

Solutions on the web48753

  • Unable to instantiate activity ComponentInfo{ch.moritzhuber.serversocket.encryption2/xxx.serversocket.encryption2.DHKeyAgreement2}: java.lang.IllegalAccessException: void ch.moritzhuber.serversocket.encryption2.DHKeyAgreement2.<init>() is not accessible from java.lang.Class<android.app.Instrumentation>
  • Unable to instantiate activity ComponentInfo{io.github.ishankgulati.breakout/io.github.ishankgulati.breakout.BreakoutGame}: java.lang.IllegalAccessException: void io.github.ishankgulati.breakout.BreakoutGame.<init>() is not accessible from java.lang.Class<android.app.Instrumentation>
  • Unable to instantiate activity ComponentInfo{hesh.ballc/hesh.ballc.MainActivity}: java.lang.IllegalAccessException: hesh.ballc.MainActivity() is not accessible from class android.app.Instrumentation
  • Stack trace

    • java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{ch.moritzhuber.serversocket.encryption2/xxx.serversocket.encryption2.DHKeyAgreement2}: java.lang.IllegalAccessException: void ch.moritzhuber.serversocket.encryption2.DHKeyAgreement2.<init>() is not accessible from java.lang.Class<android.app.Instrumentation> at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2375) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2524) at android.app.ActivityThread.access$900(ActivityThread.java:154) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1391) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:234) at android.app.ActivityThread.main(ActivityThread.java:5526) 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) Caused by: java.lang.IllegalAccessException: void xxx.serversocket.encryption2.DHKeyAgreement2.<init>() is not accessible from java.lang.Class<android.app.Instrumentation> at java.lang.Class.newInstance(Native Method) at android.app.Instrumentation.newActivity(Instrumentation.java:1068) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2365)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 1 year ago
    2 times, 2 months ago
    Once, 2 months ago
    3 times, 4 months ago
    15 more bugmates