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
Error after update to NS 3.1.3 #57
Comments
I'm having the same problem, but only when I set a background-color in the css class for the button. |
I believe that the same issue is affecting nativescript-cardview: In both cases, cardview and floatingactionbutton if the background-color is set in CSS the app crashes. Remove the CSS and all is well, except the background-color is wrong! :) |
Hi @andreacappadona17 , |
Hey @andreacappadona17 , |
Try using a previous version of the core-modules and see if it doesn't crash with the background color. I have core-modules 3.1.0 with ios runtime 3.1.0 and android runtime 3.1.1 and I can change the background color of the FAB just fine and have pushed two apps in the previous week. Haven't looked into the issue much because I haven't had this issue myself. @sagar1911 as far as it moving when you scroll, just dont set the |
Thank you sir, BTW I have done it without plugin and it's working fine.
Rodda SagarUX Engineer
M +91 9502315034
E sagar@divami.com
…On Fri, Aug 18, 2017 at 7:47 PM, Brad Martin ***@***.***> wrote:
Try using a previous version of the core-modules and see if it doesn't
crash with the background color. I have core-modules 3.1.0 with ios runtime
3.1.0 and android runtime 3.1.1 and I can change the background color of
the FAB just fine and have pushed two apps in the previous week. Haven't
looked into the issue much because I haven't had this issue myself.
@sagar1911 <https://github.com/sagar1911> as far as it moving when you
scroll, just dont set the hideOnSwipeOfView or animation for that and it
shouldn't move. I don't move it in my app and I use the same code on the
README with no issue. Hope that helps.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#57 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AdFDnPyV7hjWXLnYdlF1mZVjFkWODr6lks5sZZ0VgaJpZM4OxArq>
.
|
Removing background-color solves the problem. A fix for this would be great. |
I just installed 3.2 and unless I've done something wrong the problem persists. |
I also have installed 3.2 today and the problem still exists |
Updated to 3.2 and facing same issues on Android. iOS seems to work fine. |
Has anyone nuked their node_modules, cleaned the platform folder, updated runtimes, core-modules and then performed a full rebuild and install? I've just updated an app to 3.2.0 and I don't have any issue. <FAB row="0" rowSpan="2" col="0" (tap)="takePhoto() " icon="res://ic_photo_camera_white" rippleColor="#f1f1f1" class="take-picture-fab-button"></FAB> .take-picture-fab-button {
background-color: #ff4081;
vertical-align: bottom;
horizontal-align: right;
height: 60;
width: 60;
margin: 10 15 5% 10;
} I've navigated to and from multiple pages with the FAB on them. I've changed the If an uninstall, nuke, rebuild, & run doesn't fix this for those still experiencing the issue we might need to get a simple demo app to send to the core team. I wish I had an error but in my apps all seems fine, sorry everyone still having issues. Hopefully the steps mentioned here will help. |
Unfortunately, those steps did not help for me :( |
@bradmartin We think we have a working project that reproduces the issue, can you please give an email to share it with on Google Drive? |
@bradmartin We've shared the project with you at bradwaynemartin@gmail.com, would you please take a look? |
First thing I noticed in that project, you're on core-modules 3.1.1 - I'm about to build it and run it, so will update soon. @tigrenok00 |
It works as expected with 3.2.0 core-modules which contains the fix for the issue in 3.1 core-modules. @tigrenok00 - so delete node_modules and set the core-modules to 3.2.0 in the package.json, then Let me know how it goes 😄 |
Do you receive an error about Drawable in the console? We do |
With resource icon on the FAB ^^^. Yes, there is some drawable exception in the console that seems to be printing. I'm not sure what's causing that but at least the FAB will render. Figuring out that exception will take more time to debug and I currently don't have extra time to look into it, sorry. Would be happy if someone else has any time to debug it and see where it's thrown from. |
In our original project we have a crush with the error shown on the original post screenshot. In the example project there is no crush but the error is seen in the console. |
Sorry, just saw your comment about tns-core-modules. In the original project it is 3.2.0 already (the one with the crash), we just updated the example one and it behaves as said - no crash, but error in console. I'm not sure why the original project is different. |
@bradmartin I too followed the steps right now, nuked the node_modules, removed tns-core-modules, removed platforms, updated and reran the application. Still gives me the same error.
Interestingly enough once I removed the background color from the css it started working fine. The moment I added the background color it started throwing the error. |
Can you share screenshot of your appresources folder with one android
directory and the icon you are putting on the Fab
…On Tue, Sep 12, 2017, 10:19 AM Sudhanshu Siddh ***@***.***> wrote:
@bradmartin <https://github.com/bradmartin> I too followed the steps
right now, nuked the node_modules, removed tns-core-modules, removed
platforms, updated and reran the application. Still gives me the same error.
tns info gives me:
┌──────────────────┬─────────────────┬────────────────┬─────────────┐
│ Component │ Current version │ Latest version │ Information │
│ nativescript │ 3.2.0 │ 3.2.0 │ Up to date │
│ tns-core-modules │ 3.2.0 │ 3.2.0 │ Up to date │
│ tns-android │ 3.2.0 │ 3.2.0 │ Up to date │
│ tns-ios │ 3.2.0 │ 3.2.0 │ Up to date │
└──────────────────┴─────────────────┴────────────────┴─────────────┘
[image: tns-nativescriptactivity-09122017104551]
<https://user-images.githubusercontent.com/883233/30332136-9905fac0-97a7-11e7-994b-f4fba6eeedf1.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#57 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFulhDAMA4LbN1Ox1mZqO9tnLZ9M8Idxks5shpppgaJpZM4OxArq>
.
|
This was taken from https://material.io/icons/#ic_add |
Yep all good there. What is the color value in your css? I use hex values and it doesn't throw that exception. Also, can you try on various android APIs and see if you can isolate maybe a specific API? First thing I'd try is to clone the repo and run the demo app. If the demo app runs then you can start isolating your issue to something in your application. So lets try that first and let me know how it goes please 😄 |
Did anyone manage to solve the problem? |
@bradmartin the color value is #7D110C. I am trying to check with the different android APIs and get back to you. I will also try to clone the demo app and try. Sorry for the delay, I had been away from a day. |
UPDATE: Tried running the demo app and it gave me the same error. |
Hi @bradmartin , do you have any advice for us? |
Hi @tigrenok00 - I currently don't. I did meet @sudhanshu-15 at the developer day conference and discussed it. I'll probably take a look at this later this week or early next. |
@bradmartin I ran the demo app on my personal device and it seems to be
working fine. I am going to send you the demo app zip from my work system
in a day or two.
On Tue, Sep 19, 2017 at 3:39 PM Brad Martin ***@***.***> wrote:
Hi @tigrenok00 <https://github.com/tigrenok00> - I currently don't. I did
meet @sudhanshu-15 <https://github.com/sudhanshu-15> at the developer day
conference and discussed it. I'll probably take a look at this later this
week or early next.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#57 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA16IQB1Ba1bt66sxtpsb8ayfp9e3tGWks5skBhTgaJpZM4OxArq>
.
--
Sudhanshu
|
It seems to be problem at least on android 6 version. 3.2 core-modules fixed it on android 7 and 4.4.4 at least. Removing background-color from .fab-button fixes it and it takes color from ns_primary or ns_accent from manifest |
@bradmartin @jukkaisosomppi I can confirm @jukkaisosomppi hypothesis of the problem being on Android 6. I deployed on my Android 7 device and emulator and it seems to be working fine, while it crashes on my other device running android 6. |
Good to know. I only tested on 7 I think. This should help tracking down
the issue.
…On Fri, Sep 22, 2017, 9:44 AM Sudhanshu Siddh ***@***.***> wrote:
@bradmartin <https://github.com/bradmartin> @jukkaisosomppi
<https://github.com/jukkaisosomppi> I can confirm @jukkaisosomppi
<https://github.com/jukkaisosomppi> hypothesis of the problem being on
Android 6. I deployed on my Android 7 device and emulator and it seems to
be working fine, while it crashes on my other device running android 6.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#57 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFulhLjRyu_YrnH2q3lj0L0xfJMx9bSYks5sk8e2gaJpZM4OxArq>
.
|
@jukkaisosomppi @sudhanshu-15 If anyone could attach a project that reproduce it or at least steps to repro please do so. I will take a look. |
Hi, here is example app. |
So it seems Android team is doing the same mistake like us. The |
@bradmartin Hi, if the problem is found, any chance for an update to fix this on android 6? Thanks! |
Absolutely, I don't have the time currently to help on it but once a solution is found if it requires updating the plugin I'll make sure it happens. |
I hoped to set the color we need in ns_primary or ns_accent until the fix, but it has no impact... (I'm using a theme, and it looks like regardless of which theme it is, the default FAB color is the same) |
Hello, I was able to change the background color by changing the value of the ns_accent item in app/ app_Resources/values-21/colors.xml Example:
I hope it works for you too! ;) |
Hello guys, I have the same issue. Actually my app is published. The problem here is in some devices on Android, the background-color works perfectly on other devices doesn't work. Any idea how to fix it ? |
For now the best approach across all android APIs IMO is to use the Has anyone confirmed on Android 6 if using |
Thanks @marcelomiranda90 your fix worked like a charm. |
@marcelomiranda90 the trick did the job. @bradmartin I tried using |
…ources()); throws exception in Java. Fix nstudio/nativescript-floatingactionbutton#57 Addition to #4728
Fixed with NativeScript/NativeScript#4959 |
…ources()); throws exception in Java. (#4959) Fix nstudio/nativescript-floatingactionbutton#57 Addition to #4728
Confirmed the fix is good, thanks @hshristov |
Thanks to @marcelomiranda90 on the following thread for the fix: nstudio/nativescript-floatingactionbutton#57
I am getting error after update NS 3.1.3.
The text was updated successfully, but these errors were encountered: