Closed KeizerDev closed 5 years ago
Try add following to your project:
Does this help?
It is randomly fixed, I don't know how exactly. I had:
compileOptions {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
Already in my build.gradle. After your comment I just added that and uncomment everything again to test and it was working, the only thing I actually did before and after the uncomment is changed the java language version in my Android Studio to support lambda's. I tried the version from your build.gradle and mine but they work both now. Thanks anyways for your help!
I have a feeling it has to be something with the view inflater, I tried to change the
GDPR.getInstance().checkIfNeedsToBeShown(this, mSetup);
part toGDPR.getInstance().checkIfNeedsToBeShown(SplashActivity.this, mSetup);
and similar ways but it still doesn't work.Here is my stacktrace:
I have registered the dialog in my Application class like this:
I open my SplashActivity as first activity and it crashes instantly, my code looks like this
I use androidx with the following settings in my gradle.properties:
I use version
1.4.1
of your library and I am compiling my app using Android version29