rey5137 / material

A library to bring fully animated Material Design components to pre-Lolipop Android.
http://rey5137.com/material/
Apache License 2.0
6k stars 1.32k forks source link

com.android.support:appcompat-v7:23+ not have Spinner_android_gravity #222

Closed grestuccia1 closed 9 years ago

grestuccia1 commented 9 years ago

java.lang.RuntimeException: Unable to start activity ComponentInfo{yobdo.yobapp/yobdo.yobapp.activity.EditPositionActivity}: android.view.InflateException: Binary XML file line #69: Error inflating class com.rey.material.widget.Spinner at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2298) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360) at android.app.ActivityThread.access$800(ActivityThread.java:144) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5221) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694) Caused by: android.view.InflateException: Binary XML file line #69: Error inflating class com.rey.material.widget.Spinner at android.view.LayoutInflater.createView(LayoutInflater.java:633) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743) at android.view.LayoutInflater.rInflate(LayoutInflater.java:806) at android.view.LayoutInflater.rInflate(LayoutInflater.java:809) at android.view.LayoutInflater.rInflate(LayoutInflater.java:809) at android.view.LayoutInflater.inflate(LayoutInflater.java:504) at android.view.LayoutInflater.inflate(LayoutInflater.java:414) at android.view.LayoutInflater.inflate(LayoutInflater.java:365) at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:257) at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:109)

ppamorim commented 9 years ago

+1 Same here! I can't compile the project.

Warning: com.rey.material.drawable.ContactChipDrawable: can't find referenced method 'float ceil(float)' in library class android.util.FloatMath
Warning: com.rey.material.text.style.ContactChipSpan: can't find referenced method 'float ceil(float)' in library class android.util.FloatMath
Warning: com.rey.material.widget.Spinner: can't find referenced field 'int Spinner_android_gravity' in program class com.rey.material.R$styleable
Warning: com.rey.material.widget.Spinner: can't find referenced field 'int Spinner_prompt' in program class com.rey.material.R$styleable
Warning: com.rey.material.widget.Spinner: can't find referenced field 'int Spinner_disableChildrenWhenDisabled' in program class com.rey.material.R$styleable
Warning: there were 3 unresolved references to program class members.
     Your input classes appear to be inconsistent.
     You may need to recompile the code.
     (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedprogramclassmember)
Warning: there were 2 unresolved references to library class members.
     You probably need to update the library versions.
     Alternatively, you may have to specify the option 
     '-dontskipnonpubliclibraryclassmembers'.
     (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedlibraryclassmember)
ppamorim commented 9 years ago

@rey5137 Impossible to use with SDK 23 :(

golontico commented 9 years ago

Same error

aumidbek commented 9 years ago

same error

Possimpible commented 9 years ago

Turns out all _android_gravity _prompt and _disableChildrenWhenDisabled were straight up all removed in 23. http://developer.android.com/sdk/support_api_diff/23/changes/android.support.v7.appcompat.R.styleable.html

rey5137 commented 9 years ago

I have published 1.2.1.6-SNAPSHOT version that fixed this issue. Pls test it out.

Possimpible commented 9 years ago

Snapshot version works okay for me. Thanks a lot.

ppamorim commented 9 years ago

@rey5137 1.2.2-SNAPSHOT don't have fixed it yet?

rey5137 commented 9 years ago

@ppamorim Yes, pls use 1.2.1.6-SNAPSHOT.

golontico commented 9 years ago

@rey5137 if i use compile 'com.github.rey5137:material:1.2.1.6-SNAPSHOT' Return this error Error:(27, 13) Failed to resolve: com.github.rey5137:material:1.2.1.6-SNAPSHOT Show in File
Show in Project Structure dialog

With compileSdkVersion 23 buildToolsVersion '22.0.1' targetSdkVersion 22

rey5137 commented 9 years ago

Did you add the snapshot repository?

repositories {
    maven {
        url "https://oss.sonatype.org/content/repositories/snapshots"
    }
}
golontico commented 9 years ago

nop

tasomaniac commented 9 years ago

I am getting exact same issue with the old library ViewPagerIndicator from JakeWharton. It is related to LinePageIndicator. Is it related to the removed attributes in the support library?

Warning can't find referenced method 'float ceil(float)' in library class android.util.FloatMath
aumidbek commented 9 years ago

Snapshot version works okay. Thanks a lot.

ppamorim commented 9 years ago

@rey5137 ProgressView don't exists on 1.2.1.6 :( I can't use this version. Do you know any date to release an stable version with this issue fixed?

Possimpible commented 9 years ago

@ppamorim Are you sure? I use ProgressView in my app with 1.2.1.6-SNAPSHOT just fine.

golontico commented 9 years ago

Hey people some one can help me to know how to set the snapshot..... i dont know how to

adityanaique commented 9 years ago

Open build.gradle (Module: app)

Change compile 'com.github.rey5137:material:1.2.1' to compile 'com.github.rey5137:material:1.2.1.6-SNAPSHOT'

Then after apply plugin: 'com.android.application' , put repositories { maven { url "https://oss.sonatype.org/content/repositories/snapshots" } }

Then make a Gradle sync as suggested by Android Studio.

Found the answer here http://stackoverflow.com/questions/20574111/add-maven-repository-to-build-gradle

golontico commented 9 years ago

@adityanaik thanks!

4nd3250n commented 9 years ago

Where can one find this "snapshot"?

4nd3250n commented 8 years ago

Is this snapshot available for download? if not, what must be changed in source code?