i get this errors guys when i'm trying to add the gdpr code i tried some methods but i'm stil having the same issue i hope guys if someone can help i'd appreciate it thank you.
// TODO: Replace with your app's privacy policy URL.
privacyUrl = new URL("https://www.your.com/privacyurl");
} catch (MalformedURLException e) {
e.printStackTrace();
// Handle error.
}
ConsentForm form = new ConsentForm.Builder(context, privacyUrl)
.withListener(new ConsentFormListener() {
@Override
public void onConsentFormLoaded() {
// Consent form loaded successfully.
}
@Override
public void onConsentFormOpened() {
// Consent form was displayed.
}
Add the dependency into the module's
build.gradle
:The imports are: