-
-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Render error with DeluxeSpeedView #32
Comments
Try to build your project, build -> Make Project , or CTRL + F9. |
I tried to Make Project but still error |
if you have the same error with all Speedometers, that means you have problem with your project, maybe it need clone project or Gradle sync. Thanks. |
fixed in the new Version 1.1.5. |
i compiled with version 1.1.5 (compile 'com.github.anastr:speedviewlib:1.1.5') but the still render errors with not only DeluxeSpeedView but also all of other views. i tried to clean and make project again but can not fix. java.lang.NoSuchFieldError: Speedometer_sv_speedometerMode |
Show me the |
<com.github.anastr.speedviewlib.DeluxeSpeedView
|
this is a little more confusing. |
Error help me... activity_control.xml:14: AAPT: error: attribute sv_highSpeedColor (aka com.github.anastr.speedview:sv_highSpeedColor) not found. activity_control.xml:14: AAPT: error: attribute sv_lowSpeedColor (aka com.github.anastr.speedview:sv_lowSpeedColor) not found. activity_control.xml:14: AAPT: error: attribute sv_mediumSpeedColor (aka com.github.anastr.speedview:sv_mediumSpeedColor) not found. activity_ray.xml:14: AAPT: error: attribute sv_lowSpeedColor (aka com.github.anastr.speedview:sv_lowSpeedColor) not found. ray.xml:14: AAPT: error: attribute sv_mediumSpeedColor (aka com.github.anastr.speedview:sv_mediumSpeedColor) not found. activity_work_with_indicator.xml:16: AAPT: error: attribute sv_highSpeedColor (aka com.github.anastr.speedview:sv_highSpeedColor) not found. activity_work_with_indicator.xml:16: AAPT: error: attribute sv_lowSpeedColor (aka com.github.anastr.speedview:sv_lowSpeedColor) not found. activity_work_with_indicator.xml:16: AAPT: error: attribute sv_lowSpeedPercent (aka com.github.anastr.speedview:sv_lowSpeedPercent) not found. activity_work_with_indicator.xml:16: AAPT: error: attribute sv_mediumSpeedColor (aka com.github.anastr.speedview:sv_mediumSpeedColor) not found. activity_work_with_indicator.xml:16: AAPT: error: attribute sv_mediumSpeedPercent (aka com.github.anastr.speedview:sv_mediumSpeedPercent) not found. activity_work_with_note.xml:15: AAPT: error: attribute sv_highSpeedColor (aka com.github.anastr.speedview:sv_highSpeedColor) not found. activity_work_with_note.xml:15: AAPT: error: attribute sv_lowSpeedColor (aka com.github.anastr.speedview:sv_lowSpeedColor) not found. activity_work_with_note.xml:15: AAPT: error: attribute sv_mediumSpeedColor (aka com.github.anastr.speedview:sv_mediumSpeedColor) not found. |
The answer in #166 @sermyagin |
thanks I will try |
Hello,
i add DeluxeSpeedView to layout but it shows render errors:
java.lang.NoSuchFieldError: Speedometer_sv_speedometerMode
at com.github.anastr.speedviewlib.base.Speedometer.initAttributeSet(Speedometer.java:87)
at com.github.anastr.speedviewlib.base.Speedometer.(Speedometer.java:58)
at com.github.anastr.speedviewlib.DeluxeSpeedView.(DeluxeSpeedView.java:45)
at com.github.anastr.speedviewlib.DeluxeSpeedView.(DeluxeSpeedView.java:41)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.jetbrains.android.uipreview.ViewLoader.createNewInstance(ViewLoader.java:475)
at org.jetbrains.android.uipreview.ViewLoader.loadClass(ViewLoader.java:262)
at org.jetbrains.android.uipreview.ViewLoader.loadView(ViewLoader.java:220)
at com.android.tools.idea.rendering.LayoutlibCallbackImpl.loadView(LayoutlibCallbackImpl.java:186)
at android.view.BridgeInflater.loadCustomView(BridgeInflater.java:334)
at android.view.BridgeInflater.loadCustomView(BridgeInflater.java:345)
at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:245)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)
at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:858)
at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:70)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:834)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:861)
at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:70)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:834)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
at android.view.LayoutInflater_Delegate.parseInclude(LayoutInflater_Delegate.java:197)
at android.view.LayoutInflater.parseInclude(LayoutInflater.java:902)
at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:854)
at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:70)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:834)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
at android.view.LayoutInflater.inflate(LayoutInflater.java:518)
at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:324)
at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:429)
at com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:368)
at com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:567)
at com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:549)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:863)
at com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:549)
at com.android.tools.idea.rendering.RenderTask.lambda$inflate$1(RenderTask.java:680)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
However, when i run app it can shows DeluxeSpeedView:
![image](https://user-images.githubusercontent.com/13791476/26874724-e1a9defe-4ba8-11e7-8df3-aae5b6676a4f.png)
Please help me render without error.
Thanks!
The text was updated successfully, but these errors were encountered: