Failed to find byte code for com/kount/api/DataCollector$CompletionHandler
See original GitHub issueI just clone the update to date code to local and want import into the android studio. first, the compile is successful, but when I run the demo, it gets an error as following:
Failed to find byte code for com/kount/api/DataCollector$CompletionHandler
I have found some solutions in websites, many of them say that is a proguard issue.
but when I add the codes -dontwarn com.kount.**
in the ‘proguard.pro’ file , it is still having this problem. Thank you.
android studio version is 3.1.3 classpath ‘com.android.tools.build:gradle:3.1.3’
update
When I check the gradle in the module of BraintreeDataCollector, it sees:
def deviceCollectorVersion = 'kount-data-collector-3.2.jar'
dependencies {
// TODO `api` is the proper keyword for this dependency
// Although when we try to add this to our releaseJar
// We don't have access to configurations.(compile|api)
// So this needs more investigation.
// For now, revert back to `compile` keyword
compile files('libs/' + deviceCollectorVersion)
}
I just follow the lib and see the package of com.kount.api.DataCollector
. It has just one class
BuildConfig
,not has another one. it is saying that there is not a class called CompletionHandler in its source codes. I just guess that the version is wrong.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top GitHub Comments
@nb312 we were able to reproduce this on another machine. The issue seems to stem from Instant Run being enabled. You can disable Instant Run as a temporary fix.
We’ll look more into the issue around Instant Run not working for BraintreeDataCollector.
@quinnjn thank you a lot for answer me.