AnchorFreePartner / hydrasdk-demo-android

Hydra VPN SDK demo app for Android
https://developer.anchorfree.com/
60 stars 31 forks source link

Error when targeting S+ (version 31 and above) #150

Closed kingmaf03 closed 2 years ago

kingmaf03 commented 2 years ago

I got this error when trying to install it.

com.anchorfree.vpnsdk.vpnservice.AFVpnService: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present

abenkdh commented 2 years ago

add this to your manifest ` <service android:name="com.anchorfree.vpnsdk.vpnservice.AFVpnService" android:enabled="@bool/vpn_process_enabled" android:permission="android.permission.BIND_VPN_SERVICE" android:process="@string/vpn_process_name" android:exported="false">

    </service>`
kingmaf03 commented 2 years ago

Thanks @abenkdh . It works.