Coder Social home page Coder Social logo

Comments (7)

vjoao avatar vjoao commented on July 21, 2024 1

Found it. It's the icon reference, which is not found res://ic_add_white.

from nativescript-floatingactionbutton.

vjoao avatar vjoao commented on July 21, 2024 1

I'll close this. But isn't good to have an additional check on this? The app just crashes with no meaningful information (well, the line number maybe). I think if the icon is not found, it should just display nothing.

from nativescript-floatingactionbutton.

bradmartin avatar bradmartin commented on July 21, 2024

What version of support lib do you have? Should be 23.1.1 (November 2015
release) that's the latest.

On Wed, Feb 17, 2016, 4:24 PM Victor Nascimento [email protected]
wrote:

I just tried to start a new project and adding the FAB.

tns create new-project
cd new-project
tns platform add android
npm install nativescript-floatingactionbutton
tns run android

And got the following error on Android 5.0.0:

java.lang.RuntimeException: Unable to start activity ComponentInfo{org.nativescript.fabproject/com.tns.NativeScriptActivity}: com.tns.NativeScriptException:
Calling js method onCreateView failed

TypeError: Cannot read property 'android' of null
File: "/data/data/org.nativescript.fabproject/files/app/tns_modules/nativescript-floatingactionbutton/fab.js, line: 37, column: 53

StackTrace:
Frame: function:'FloatingActionButton._createUI', file:'/data/data/org.nativescript.fabproject/files/app/tns_modules/nativescript-floatingactionbutton/fab.js', line: 37, column: 54
Frame: function:'View._onContextChanged', file:'/data/data/org.nativescript.fabproject/files/app/tns_modules/ui/core/view.js', line: 206, column: 14
Frame: function:'View._onAttached', file:'/data/data/org.nativescript.fabproject/files/app/tns_modules/ui/core/view.js', line: 164, column: 14
Frame: function:'eachChild', file:'/data/data/org.nativescript.fabproject/files/app/tns_modules/ui/core/view.js', line: 169, column: 23
Frame: function:'

I have all the support libraries installed. Any thoughts?


Reply to this email directly or view it on GitHub
#6
.

from nativescript-floatingactionbutton.

vjoao avatar vjoao commented on July 21, 2024

I have the 23.1.1

from nativescript-floatingactionbutton.

bradmartin avatar bradmartin commented on July 21, 2024

👍 feel free to close this if it's working now.

from nativescript-floatingactionbutton.

bradmartin avatar bradmartin commented on July 21, 2024

Good point. I'll add a check for it

On Wed, Feb 17, 2016, 5:43 PM Victor Nascimento [email protected]
wrote:

I'll close this. But isn't good to have an additional check on this? The
app just crashes with no meaningful information (well, the line number
maybe). I think if the icon is not found, it should just display nothing.


Reply to this email directly or view it on GitHub
#6 (comment)
.

from nativescript-floatingactionbutton.

bradmartin avatar bradmartin commented on July 21, 2024

@lazaromenezes - added a check for null icon, published the update. Any issues then reopen this issue 👍

from nativescript-floatingactionbutton.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.