burkeholland / nativescript-statusbar

A NativeScript plugin to change the style of the status bar. Currently ios only.
MIT License
32 stars 14 forks source link

Crashing on both iOS and Android #8

Open d3mac123 opened 7 years ago

d3mac123 commented 7 years ago

Hi, I've installed the module and added the lines in the page.xml file:

<Page xmlns="http://schemas.nativescript.org/tns.xsd"  xmlns:x="nativescript-statusbar" navigatingTo="onNavigatingTo" class="page">
    <Page.actionBar>
        <ActionBar title="Settings" icon="" class="action-bar">
        </ActionBar>
    </Page.actionBar>
      <x:StatusBar ios:barStyle="light" android:barColor="#00C0F5" />
...

However, running the app I get the following error: An uncaught Exception occurred on "main" thread. com.tns.NativeScriptException: Calling js method onMenuItemClick failed

Error: Building UI from XML. @file:///app/settings-page.xml:23:7

Module '/data/data/com.asouza.buddyFinder/files/app/nativescript-statusbar' not found for element 'nativescript-statusbar:StatusBar'. com.tns.NativeScriptException: Failed to find module: "/data/data/com.asouza.buddyFinder/files/app/nativescript-statusbar", relative to: app// com.tns.Module.resolvePathHelper(Module.java:146) ...

Any ideas on what I did wrong? I am running │ nativescript │ 3.0.0 │ tns-core-modules │ 2.5.0 │ tns-android │ 3.0.0 │ tns-ios │ 2.5.0

priyangamani commented 7 years ago

Hi, you got a solution this one.