Giter VIP home page Giter VIP logo

Comments (11)

BoD avatar BoD commented on August 22, 2024

I am sorry, you need to give me more details (logs?).

from android-switch-backport.

parhs avatar parhs commented on August 22, 2024

I get it from maven.But seems maven doesnt work with android studio. Tried to import project I get now

Could not execute build using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.9-rc-3-bin.zip'.
Build file 'C:\Users\Parhs\Documents\temp\android-switch-backport-master\library\build.gradle' line: 1
A problem occurred evaluating project ':library'.
A problem occurred evaluating project ':library'.
Gradle version 1.6 is required. Current version is 1.9-rc-3

Changing gradle build to 0.6+ then I get.
You are using unsupported version of Gradle.
Please point to a supported Gradle version in the project's Gradle settings or in the project's Gradle wrapper (if applicable.)

from android-switch-backport.

BoD avatar BoD commented on August 22, 2024

I can confirm that I couldn't open the project with Studio.
I don't know/use Gradle yet (the build file was contributed by someone else), so I am afraid I don't know how to fix this for the moment.
Sorry I don't have a solution for now, keeping this issue open until I look into it.

from android-switch-backport.

parhs avatar parhs commented on August 22, 2024

I have made it work.However I may post how I did it if you dont find .

from android-switch-backport.

BoD avatar BoD commented on August 22, 2024

Yes, any information is appreciated :)

from android-switch-backport.

BoD avatar BoD commented on August 22, 2024

I just pushed an updated gradle configuration that should work (and a README file explaining how to use it).
Don't hesitate to tell me if that doesn't solve the issue for you.
Closing this issue for now.

from android-switch-backport.

zhouyixiang avatar zhouyixiang commented on August 22, 2024

@parhs Would you please post how to fix it? I got the same issue with library version 1.1.

from android-switch-backport.

zhouyixiang avatar zhouyixiang commented on August 22, 2024

@parhs I find this discussion on stackoverflow, and post the link here for anyone who gets the same issue. Thanks.

from android-switch-backport.

foghina avatar foghina commented on August 22, 2024

Doesn't work for me out of the box, I get this exact error. Following the discussion on Stack Overflow I was able to work around it without re-compiling the library. Basically, I added this to my values/attrs.xml:

<declare-styleable name="AppTheme">
    <attr name="switchStyle" format="reference" />
    <attr name="switchPreferenceStyle" format="reference" />
</declare-styleable>

from android-switch-backport.

emartynov avatar emartynov commented on August 22, 2024

Submitted pull request

from android-switch-backport.

dlazaro66 avatar dlazaro66 commented on August 22, 2024

foghina's code worked for me using Android Studio with gradle.

Thanks.

from android-switch-backport.

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.