GithubHelp home page GithubHelp logo

Not working after upgrading to api level 26 with android studio 3.0: Error inflating class fr.castorflex.android.circularprogressbar.CircularProgressBar about smoothprogressbar HOT 10 CLOSED

nizamsp avatar nizamsp commented on July 23, 2024
Not working after upgrading to api level 26 with android studio 3.0: Error inflating class fr.castorflex.android.circularprogressbar.CircularProgressBar

from smoothprogressbar.

Comments (10)

imorlowska avatar imorlowska commented on July 23, 2024 10

I debugged this issue for one of your users and it looks like they had a dependency on a version/fork of your library that was built using a very old version of build tools that had a bug which caused the attributes under declare styleables to be compiled as final in the R.java. This in turn resulted in the resource IDs being inlined in the code of the library and since the ordering of resources changed in AAPT2 this results in the reported error. The fact that it worked so far with AAPT1 is only pure luck. For those having this issue updating the version of this library to the newest one ('com.github.castorflex.smoothprogressbar:library:1.1.0') fixes this issue, no need to disable AAPT2.

from smoothprogressbar.

mnchiu avatar mnchiu commented on July 23, 2024 6

Is there any update on this issue?

from smoothprogressbar.

JuniusAng avatar JuniusAng commented on July 23, 2024 2

I think the issue caused aapt2 being enabled by default in AS gradle plugins 3.0.
For temporary fix try to add this into your gradle.properties

android.enableAapt2=false

and please confirm if this also fix your project.

from smoothprogressbar.

pepitoria avatar pepitoria commented on July 23, 2024

this is happening to me too. on the normal library, not the circular though.

from smoothprogressbar.

nizamsp avatar nizamsp commented on July 23, 2024

Yes. The fix worked. But will this affect my other projects?

from smoothprogressbar.

JuniusAng avatar JuniusAng commented on July 23, 2024

I think no. The issue possibly lies on aapt2. But we will try to test it more later.

Sent from my OnePlus ONEPLUS A3003 using FastHub

from smoothprogressbar.

castorflex avatar castorflex commented on July 23, 2024

I guess this issue is related to this one https://stackoverflow.com/questions/44196672/aapt2-compile-failed-invalid-dimen-on-android-3-0-canary-1

Could you try setting LC_NUMERIC? I don't have the error on my end

from smoothprogressbar.

youtoou2 avatar youtoou2 commented on July 23, 2024

same issue and temp fixed with android.enableAapt2=false

from smoothprogressbar.

vad-zuev avatar vad-zuev commented on July 23, 2024

@imorlowska implementation 'com.github.castorflex.smoothprogressbar:library-circular:1.0.1' AFAIK this is the latest version for the round one. Crashes with the error given by the OP on API 24, AS 3.0, Gradle 3.0.0. The only solution that currently works for me is to disable aapt 2

from smoothprogressbar.

castorflex avatar castorflex commented on July 23, 2024

Closing because the issue is too old. Please reopen it if you're facing the same issue

from smoothprogressbar.

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.