tim06 / VPNProtocols

Android client implementation of VPN
26 stars 5 forks source link

App crashes when trying to use this library #3

Closed DionGanteng closed 2 years ago

DionGanteng commented 2 years ago

Crash report taken from logcat java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.

tim06 commented 2 years ago

Hello! Thank you for issue. Could you show which library(openvpn/shadowsocksr) added in build.gradle file in you project?

DionGanteng commented 2 years ago

All, shadowsock and ovpn

DionGanteng commented 2 years ago

And this is when I want to add config ssr

DionGanteng commented 2 years ago

Type checking has run into a recursive problem. Easiest workaround: specify types of your declarations explicitly

tim06 commented 2 years ago

Are you using this in activity or fragment? Can you provide more information about this class? Now for this delegate require Context scope

DionGanteng commented 2 years ago

I use it in activity class

tim06 commented 2 years ago
Снимок экрана 2022-08-29 в 10 00 28

Here I have created an activity and used the library without error. How can I reproduce your issue?

DionGanteng commented 2 years ago

Socket error sssocket

tim06 commented 2 years ago

Fixed in 1.0.14 versions

DionGanteng commented 2 years ago

Thank you for the response and the update