Coder Social home page Coder Social logo

Comments (13)

embydextrous-zz avatar embydextrous-zz commented on August 20, 2024 1

I am getting this error in debug build where let code is in classes2.dex while in release build there is only one dex file so not getting this error.

from let.

canelmas avatar canelmas commented on August 20, 2024

Thanks @jachenry .

Strange. It seems like a compile time thing. What is the java version you're targeting ? 1.6, 1.7 ?

I'll try to dig into this issue as soon as I can. In the meantime I'll be happy to hear about your progress.

from let.

jachenry avatar jachenry commented on August 20, 2024

@canelmas I'm targeting 1.8 in order to use retrolambda plugin. It may only be an issue on emulators. I'll keep you posted on any updates.

from let.

2hamed avatar 2hamed commented on August 20, 2024

I'm having the same problem with APIs prior to 21. Strangely I too am doing some location related stuff after getting the permission.

from let.

embydextrous-zz avatar embydextrous-zz commented on August 20, 2024

I think this issue happens on multidex build where let code is in secondary .dex file.

from let.

2hamed avatar 2hamed commented on August 20, 2024

@embydextrous My build was not multidex.

from let.

okram2000 avatar okram2000 commented on August 20, 2024

Hi guys,
I could circumvent this problem building as release too.
I have java 1.7 as target and the problems exists with Android 4.4 and 4.3 installations over here.
Regards
-Marko

from let.

bugraoral avatar bugraoral commented on August 20, 2024

This seems to be because of code swapping added with android gradle plugin 2+. It works fine when building using command line or instant run turned off.
Possibly related to https://code.google.com/p/android/issues/detail?id=204360

from let.

canelmas avatar canelmas commented on August 20, 2024

Can you guys please confirm if this is the case as well for you?

@okram2000 @embydextrous @2hamed @jachenry

from let.

embydextrous-zz avatar embydextrous-zz commented on August 20, 2024

@bugraoral

If this is the issue with code swapping. It should not have been observed in release builds.
Code swapping does not work for release builds.

from let.

2hamed avatar 2hamed commented on August 20, 2024

I had the issue with a release build as well. Will test more though.

UPDATE: Tested again with Instant Run disabled and it worked!

from let.

okram2000 avatar okram2000 commented on August 20, 2024

Hey guys,
I cannot reproduce this error with release builds. Only with debug builds!
Furthermore:
Disabling instant run also fixes this error for me!
Greetings
-Marko

from let.

embydextrous-zz avatar embydextrous-zz commented on August 20, 2024

I have also not observed this error in release builds. I think instant run is the culprit. But I guess when I got this error first time I was using a lower version of android studio and instant run was not present.
Instant run is nightmare a lot of times. Sometimes it swaps my icons and do stupid stuff. I think this is not a library bug.

from let.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.