Closed kirtipopli83 closed 2 years ago
@JayNewstrom , @frett @dfilatov-okta @haguilar-okta Can you please look into this issue. I already raised an issue earlier but did not get any solution.
@kirtipopli83 I`m taking a look. Is it reproducable on any device/emulator? Did you use minifyEnabled?
Yes, It is reproducable on every device but occurs sometimes.
And I have not used minifyEnabled.
buildTypes { debug { debuggable true minifyEnabled false shrinkResources false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' signingConfig signingConfigs.debug } release { debuggable false minifyEnabled false shrinkResources false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' signingConfig signingConfigs.release } }
Hi @kirtipopli83 can you run the following gradle command
./gradlew {yourApp}:androidDependencies
Running this for the sample app ./gradlew app:androidDependencies
will show a list dependencies for each configuration. Look for
releaseCompileClasspath - Dependencies for compilation
releaseRuntimeClasspath - Dependencies for runtime/packaging
to see if the jar is listed
+--- com.okta.commons:okta-config-check:1.1.1@jar
The version may differ based on the okta-authn-sdk that you are using.
Hi @FeiChen-okta
I executed the command and found this version present
com.okta.commons:okta-config-check:1.2.4@jar
@FeiChen-okta @NikitaAvraimov-okta @frett Any update?
Hi @kirtipopli83 It looks like you are using the latest okta-authn-sdk. Can you share the implementation? Do you still have the problem if using the version from the sample?
implementation 'com.okta.authn.sdk:okta-authn-sdk-api:1.0.0'
implementation('com.okta.authn.sdk:okta-authn-sdk-impl:1.0.0')
@kirtipopli83 do you have such rule at your proguard rules file?
-keep class com.okta.** { *; }
No. It's not added in proguard rules.
@kirtipopli83 could you please try adding that keep rule to your proguard config and report back if that fixes your issue?
Hi @kirtipopli83, have you had a chance to report your findings?
When I am opening the app authentication client is not able to find the class and throwing error as java.lang.NoClassDefFoundError: com.okta.commons.configcheck.ConfigurationValidator
The SDK is not able to get initialized because this particular class is not getting read by SDK methods and throws exception even if the class is there.
This is very important issue. Without it app has no meaning.