question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to find byte code for com/kount/api/DataCollector$CompletionHandler

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
quinnjncommented, Aug 1, 2018

@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.

0reactions
nb312commented, Aug 17, 2018

@quinnjn thank you a lot for answer me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android Compiling Error - Failed to find byte code for java/util ...
After updating Gradle version to 3.1, the error below is thrown on running the application: Failed to find byte code for java/util/function/ ...
Read more >
Failed to find byte code for com/google/firebase [any unused ...
Issue I upgraded to android studio 3.1 today and gradle 3.1 that came out and started getting these errors Failed to find byte...
Read more >
java.io.IOException: Failed to find byte code for android/util ...
P3, AS 3.1-beta1 fails to build APK for debugging: Failed to find byte code for android/service/quicksettings/TileService.
Read more >
PH18939: WEBSPHERE APPLICATION CLASSLOADER ...
The JPA transformer is only equipped to handle class bytecode, so when these bytes are passed to it, it fails (even if the...
Read more >
Understanding Python Bytecode - Towards Data Science
CPython compiles the python source code into the bytecode, and this ... and to get the bytecode stored in a code object, you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found