Comments (25)
Hey, guy.
Are you using Gradle? I tested just now, it works well.
from numberprogressbar.
Hi,
Yes. I am using Gradle.
I also had this problem with v.1.1 and I thought may be v.1.2 fixed it, but same error.
I also have some other libraries which are working fine, and I have problem only with this one. :|
from numberprogressbar.
It's weird, can you sync successfully?
from numberprogressbar.
Yes, Android Studio Syncs successfully with no problem.
I tried it on two different projects, both ended "force close" by same error.
from numberprogressbar.
Could you paste your code and layout xml here?
I guess it's not the library error..
from numberprogressbar.
Here it is:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context="com.ghaleh.minifc.activities.Drawer1">
...
<com.daimajia.numberprogressbar.NumberProgressBar
android:id="@+id/powerbar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="20dp"
style="@style/NumberProgressBar_Default"
app:max = "100"
app:progress = "80"/>
...
</LinearLayout>
and I have nothing related to "powerbar" id in my code.
for more info "Drawer1" extends Fragment and that is all.
from numberprogressbar.
Hey,
did you download the jar
version and put it into the libs
folder?
from numberprogressbar.
I have an idea. You can make a test project.
- Git clone this project
- try to run it in Gradle.
- Check if it works.
from numberprogressbar.
I tried:
compile 'com.daimajia.numberprogressbar:library:1.2@aar'
and after facing error I downloaded libs folder added in my "libraries" folder and add this line to setting.gradle:
include ':libraries:android_ago'
include ':libraries:paper_style'
include ':libraries:number_progressbar'
and finally added this line to build.gradle:
...
compile project(':libraries:number_progressbar')
but I got same error.
from numberprogressbar.
I want to remotely help you to solve this problem, shall we?
from numberprogressbar.
using TeamViewer share your desk.
from numberprogressbar.
Thank you! Thats nice of you.
Just let me download TeamViewer.
from numberprogressbar.
Share we start?
from numberprogressbar.
OK,
Thanks again
ID: 235 918 013
Pass: 7191
from numberprogressbar.
Password invalid...
from numberprogressbar.
You can try to run the first empty project in simulator... check if it works
from numberprogressbar.
Hey, a new quick way:
change
this(context, attrs, R.attr.numberProgressBarStyle);
to
this(context, attrs, null);
please have a try.
from numberprogressbar.
Sorry that I removed the project from lib folder.
You may need git it again and modify it.
from numberprogressbar.
Not a problem.
I'll check it now. and let you know.
from numberprogressbar.
Mistake.
should be 0
instead of null
.
this(context, attrs, 0);
from numberprogressbar.
You are a genius! :)
Actually I used
this(context, attrs, 0);
and it worked :)
from numberprogressbar.
oh, great!
from numberprogressbar.
Ok, i'll do some other changes, before publish new version.
enjoy it.
from numberprogressbar.
That was great. I really appreciate you for helping me.
Thats kind of you.
Thanks again.
from numberprogressbar.
android.view.InflateException: Binary XML file line #0: Binary XML file line #0: Error inflating class com.daimajia.numberprogressbar.NumberProgressBar
from numberprogressbar.
Related Issues (20)
- 使用的时候能隐藏百分比吗? HOT 1
- 凭借这句话,我就要star HOT 1
- Android Studio 3.0 - InflateException HOT 2
- 数字进度条
- Set Typeface HOT 2
- Using this library in RecyclerView Adapter!
- how to change font of text?
- 为什么构造方法中要先调用setProgress后调用setMax呐?
- Target 27 HOT 2
- Logo Design
- 请教
- 字体大小可以当做宽度或者高度吗
- background of the text area
- Databinding incompatibility HOT 1
- 当进度走到80%,为什么会变成-%79, - %78 ....... HOT 1
- when i use it in Notification,it can't be inflated.
- Unable to use with Androidx
- 有没有办法设置圆角
- How to set corner radius to progress reached area?
- Goog
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 numberprogressbar.