现在,我想开发一个可以扩展 VpnService 的系统应用程序。但是当我调用方法“建立()”来初始化 ParcelFileDescriptor 的实例时。我在 android 5.0 中遇到了一个异常,如下所示:
08-23 20:47:35.482 12344-12365/com.vm.shadowsocks W/System.err: java.lang.SecurityException: Cannot find com.vm.shadowsocks.core.LocalVpnService
at android.os.Parcel.readException(Parcel.java:1546)
at android.os.Parcel.readException(Parcel.java:1499)
08-23 20:47:35.483 12344-12365/com.vm.shadowsocks W/System.err: at android.net.IConnectivityManager$Stub$Proxy.establishVpn(IConnectivityManager.java:1779)
at android.net.VpnService$Builder.establish(VpnService.java:768)
at com.vm.shadowsocks.core.LocalVpnService.establishVPN(LocalVpnService.java:467)
at com.vm.shadowsocks.core.LocalVpnService.runVPN(LocalVpnService.java:256)
at com.vm.shadowsocks.core.LocalVpnService.run(LocalVpnService.java:239)
谢谢!