Comments (11)
I am sorry, you need to give me more details (logs?).
from android-switch-backport.
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.
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.
I have made it work.However I may post how I did it if you dont find .
from android-switch-backport.
Yes, any information is appreciated :)
from android-switch-backport.
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.
@parhs Would you please post how to fix it? I got the same issue with library version 1.1.
from android-switch-backport.
@parhs I find this discussion on stackoverflow, and post the link here for anyone who gets the same issue. Thanks.
from android-switch-backport.
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.
Submitted pull request
from android-switch-backport.
foghina's code worked for me using Android Studio with gradle.
Thanks.
from android-switch-backport.
Related Issues (20)
- No titlebar crash the example HOT 1
- [Q] Is it possible to resize the Switch height to make it bigger? HOT 1
- [Q] Is it there a way to change the color of the ON button? HOT 1
- Track does not work in switch preference HOT 1
- Can't get the preference to show up! HOT 2
- Text color of switch not set correctly HOT 2
- Gradle build gets stuck after including repo and dependency HOT 3
- JRAF repo not responding HOT 9
- Rendering Problems HOT 1
- Attribute has already been defined exception when using lib with compile ('com.doomonafireball.betterpickers:library:1.5.2') HOT 14
- Customize text on switch and color HOT 4
- Problem to change thumb and track drawables HOT 1
- Nullpointerexception when used on Nexus4 HOT 2
- OnPreferenceChange return False, Switch Changes HOT 3
- NullPointerException HOT 8
- Publish artefact on maven central instead on your own nexus HOT 3
- Publish on Maven Central or JCenter HOT 4
- JRAF.org is down HOT 3
- Incompatible with Support Library material Switch theme HOT 4
- Getting Null pointer exception HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-switch-backport.