Code Monkey home page Code Monkey logo

Comments (12)

mrazahasan avatar mrazahasan commented on May 27, 2024 3

try calling init() function in app.component.ts rather than main.ts if you are working with nativescript angular.

from nativescript-advanced-webview.

triniwiz avatar triniwiz commented on May 27, 2024 1

@bradmartin i'll test on the lower apis 😄

from nativescript-advanced-webview.

bradmartin avatar bradmartin commented on May 27, 2024

Looks like an android support library bug, might try updating all your android SDKs/libs. Also, you might have to check your project and confirm you don't lock in a version of the support lib in the project or that a dependency doesn't since plugins can specify deps also.

First try updating your local sdks and lets see though.

from nativescript-advanced-webview.

b4rtt avatar b4rtt commented on May 27, 2024

I tried to update local SDK and it's still same.

from nativescript-advanced-webview.

bradmartin avatar bradmartin commented on May 27, 2024

Can you clone and run the demo and see if you get this build error? If not, then we can isolate to your project and not a bigger issue 👍

from nativescript-advanced-webview.

n4lexeev avatar n4lexeev commented on May 27, 2024

same problem

from nativescript-advanced-webview.

san18793 avatar san18793 commented on May 27, 2024

For me its working fine in android emulator. when i run it in android device it is show the same error

from nativescript-advanced-webview.

n4lexeev avatar n4lexeev commented on May 27, 2024

Tested 3 emulators:

  1. Android 5.1.1 API Level 22 -> error
  2. Android 6.0 API Level 23 -> error
  3. Android 7.1.1 API Level 25 -> works fine

from nativescript-advanced-webview.

mrazahasan avatar mrazahasan commented on May 27, 2024

Same error on device and emulator, I have run your provided demo but no success

from nativescript-advanced-webview.

bradmartin avatar bradmartin commented on May 27, 2024

@triniwiz - any thoughts?

from nativescript-advanced-webview.

Buuhuu avatar Buuhuu commented on May 27, 2024

Same here:

JS: ERROR Error: Uncaught (in promise): Error: java.lang.NullPointerException: Attempt to invoke virtual method 'void co.fitcom.fancywebview.CustomTabsServiceConnectionCallBack.setWebViewListener(co.fitcom.fancywebview.AdvancedWebViewListener)' on a null object reference
JS:     co.fitcom.fancywebview.AdvancedWebView.setWebViewListener(AdvancedWebView.java:60)
JS:     co.fitcom.fancywebview.AdvancedWebView.<init>(AdvancedWebView.java:34)
JS:     com.tns.Runtime.callJSMethodNative(Native Method)
JS:     com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1088)
JS:     com.tns.Runtime.callJSMethodImpl(Runtime.java:970)
JS:     com.tns.Runtime.callJSMethod(Runtime.java:957)
JS:     com.tns.Runtime.callJSMethod(Runtime.java:941)
JS:     com.tns.Runtime.callJSMethod(Runtime.java:933)

from nativescript-advanced-webview.

Buuhuu avatar Buuhuu commented on May 27, 2024

Well spotted, that worked!

from nativescript-advanced-webview.

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.