我想在Android Studio中设置一个库。当我尝试运行应用程序时,出现运行时错误“没有此类提供程序Sun-JSSE”。我已经在Eclipse中执行了相同的库。这工作了。有什么问题吗?
2019-05-25 22:39:48.791 6387-6387/schoolplaner.best.schulplaner E/AndroidRuntime: FATAL EXCEPTION: main
Process: schoolplaner.best.schulplaner, PID: 6387
java.lang.RuntimeException: Unable to start activity ComponentInfo{schoolplaner.best.schulplaner/schoolplaner.best.schulplaner.bottomNavigationActivity}: java.lang.RuntimeException: java.security.NoSuchProviderException: no such provider: SunJSSE
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2778)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Caused by: java.lang.RuntimeException: java.security.NoSuchProviderException: no such provider: SunJSSE
at me.vertretungsplan.parser.BaseParser.<init>(BaseParser.java:102)
at me.vertretungsplan.parser.UntisCommonParser.<init>(UntisCommonParser.java:105)
at me.vertretungsplan.parser.UntisMonitorParser.<init>(UntisMonitorParser.java:94)
at me.vertretungsplan.parser.BaseParser.getInstance(BaseParser.java:144)
at me.vertretungsplan.ParserUtil.parseSubstitutionSchedule(ParserUtil.java:72)
at me.vertretungsplan.ParserUtil.parseSubstitutionSchedule(ParserUtil.java:33)
at schoolplaner.best.schulplaner.bottomNavigationActivity.getVertretungen(bottomNavigationActivity.java:421)
at schoolplaner.best.schulplaner.bottomNavigationActivity.onCreate(bottomNavigationActivity.java:375)
at android.app.Activity.performCreate(Activity.java:7009)
at android.app.Activity.performCreate(Activity.java:7000)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2731)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Caused by: java.security.NoSuchProviderException: no such provider: SunJSSE
at sun.security.jca.GetInstance.getService(GetInstance.java:83)
at sun.security.jca.GetInstance.getInstance(GetInstance.java:206)
at javax.net.ssl.TrustManagerFactory.getInstance(TrustManagerFactory.java:198)
at me.vertretungsplan.parser.BaseParser.trustManagerFromKeystore(BaseParser.java:227)
at me.vertretungsplan.parser.BaseParser.getDefaultTrustManager(BaseParser.java:221)
at me.vertretungsplan.parser.BaseParser.getSslConnectionSocketFactory(BaseParser.java:110)
at me.vertretungsplan.parser.BaseParser.<init>(BaseParser.java:92)
at me.vertretungsplan.parser.UntisCommonParser.<init>(UntisCommonParser.java:105)
at me.vertretungsplan.parser.UntisMonitorParser.<init>(UntisMonitorParser.java:94)
at me.vertretungsplan.parser.BaseParser.getInstance(BaseParser.java:144)
at me.vertretungsplan.ParserUtil.parseSubstitutionSchedule(ParserUtil.java:72)
at me.vertretungsplan.ParserUtil.parseSubstitutionSchedule(ParserUtil.java:33)
at schoolplaner.best.schulplaner.bottomNavigationActivity.getVertretungen(bottomNavigationActivity.java:421)
at schoolplaner.best.schulplaner.bottomNavigationActivity.onCreate(bottomNavigationActivity.java:375)
at android.app.Activity.performCreate(Activity.java:7009)
at android.app.Activity.performCreate(Activity.java:7000)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2731)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)