Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to find byte code for com/fasterxml/jackson/databind/deser/std/StdDeserializer #22

Closed
digitxo opened this issue Sep 14, 2018 · 3 comments
Labels

Comments

@digitxo
Copy link

digitxo commented Sep 14, 2018

I receive this error upon trying to compile a SampleApp.

Here's my dependencies

implementation project(':spotify-app-remote-release-0.4.0')
implementation "com.google.code.gson:gson:2.8.5"

Here's my mainactivity onStart (np other code)

```

@OverRide
protected void onStart() {
super.onStart();

    // Set the connection parameters
    ConnectionParams connectionParams =
            new ConnectionParams.Builder(CLIENT_ID)
                    .setRedirectUri(REDIRECT_URI)
                    .showAuthView(true)
                    .build();


    SpotifyAppRemote.CONNECTOR.connect(this, connectionParams,
            new Connector.ConnectionListener() {

                @Override
                public void onConnected(SpotifyAppRemote spotifyAppRemote) {
                    mSpotifyAppRemote = spotifyAppRemote;
                    Log.d("MainActivity", "Connected! Yay!");

                    // Now you can start interacting with App Remote
                    connected();
                }

                @Override
                public void onFailure(Throwable throwable) {
                    Log.e("MainActivity", throwable.getMessage(), throwable);

                    // Something went wrong when attempting to connect! Handle errors here
                }
            });
    // We will start writing our code here.
}

IDeas anyone?
@ghost
Copy link

ghost commented Sep 15, 2018

I have encountered this as well, the fix is to disable Instant Run.
This seems to be an android studio 3.1 issue, see here: https://stackoverflow.com/questions/49525708/ioexception-failed-to-find-byte-code-when-upgrade-to-android-studio-3-1
Disable "instant run" in File->Settings->Build, Execution, Deployment->Instant Run

@arirawr
Copy link
Contributor

arirawr commented Sep 21, 2018

Hey @digitxo - does the answer above solve this for you?

@wseemann
Copy link

wseemann commented Oct 7, 2018

You can find the solution here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants