Skip to content
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

After installing this on my local env, I am getting this error. #4

Open
Timon0219 opened this issue Oct 3, 2019 · 0 comments
Open

Comments

@Timon0219
Copy link

LOG from device OPPO A57: An uncaught Exception occurred on "main" thread.
Calling js method onCreateView failed
TypeError: nativeView.getBackground is not a function

StackTrace:
applyOnAndroid(file:///data/data/org.nativescript.preview/files/app/vendor.js:459:32)
at apply(file:///data/data/org.nativescript.preview/files/app/vendor.js:434:14)
at applyShadow(file:///data/data/org.nativescript.preview/files/app/vendor.js:710:14)
at load(file:///data/data/org.nativescript.preview/files/app/vendor.js:680:10)
at handler(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/weak-event-listener/weak-event-listener.js:32:24)
at Observable.notify(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/data/observable/observable.js:110:15)
at Observable._emit(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/data/observable/observable.js:127:12)
at ViewBase.onLoaded(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:237:10)
at View.onLoaded(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view/view.js:246:31)
at ActionBar.onLoaded(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/action-bar/action-bar.js:155:31)
at (file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:312:85)
at ViewBase.callFunctionWithSuper(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:305:5)
at ViewBase.callLoaded(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:312:10)
at ViewBase.loadView(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:440:12)
at (file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:234:13)
at PageBase.eachChildView(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/page/page-common.js:128:7)
at ViewCommon.eachChild(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view/view-common.js:1010:10)
at ViewBase.onLoaded(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:233:10)
at View.onLoaded(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view/view.js:246:31)
at Page.onLoaded(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/page/page.js:43:31)
at (file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:312:85)
at ViewBase.callFunctionWithSuper(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:305:5)
at ViewBase.callLoaded(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:312:10)
at ViewBase.loadView(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:440:12)
at ViewBase._addViewCore(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:435:12)
at ViewBase._addView(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:421:10)
at FragmentCallbacksImplementation.onCreateView(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/frame/frame.js:687:13)
at FragmentClass.onCreateView(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/frame/fragment.js:26:34)
at com.tns.Runtime.callJSMethodNative(Native Method)
at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1209)
at com.tns.Runtime.callJSMethodImpl(Runtime.java:1096)
at com.tns.Runtime.callJSMethod(Runtime.java:1083)
at com.tns.Runtime.callJSMethod(Runtime.java:1063)
at com.tns.Runtime.callJSMethod(Runtime.java:1055)
at com.tns.FragmentClass.onCreateView(FragmentClass.java:54)
at androidx.fragment.app.Fragment.performCreateView(Fragment.java:2439)
at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManager.java:1460)
at androidx.fragment.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1784)
at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManager.java:1852)
at androidx.fragment.app.BackStackRecord.executeOps(BackStackRecord.java:802)
at androidx.fragment.app.FragmentManagerImpl.executeOps(FragmentManager.java:2625)
at androidx.fragment.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2411)
at androidx.fragment.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2366)
at androidx.fragment.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2273)
at androidx.fragment.app.FragmentManagerImpl$1.run(FragmentManager.java:733)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:179)
at android.app.ActivityThread.main(ActivityThread.java:5769)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:674)

LOG from device OPPO A57: An uncaught Exception occurred on "main" thread.
Calling js method onCreateView failed
TypeError: nativeView.getBackground is not a function

StackTrace:
applyOnAndroid(file:///data/data/org.nativescript.preview/files/app/vendor.js:459:32)
at apply(file:///data/data/org.nativescript.preview/files/app/vendor.js:434:14)
at applyShadow(file:///data/data/org.nativescript.preview/files/app/vendor.js:710:14)
at load(file:///data/data/org.nativescript.preview/files/app/vendor.js:680:10)
at handler(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/weak-event-listener/weak-event-listener.js:32:24)
at Observable.notify(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/data/observable/observable.js:110:15)
at Observable._emit(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/data/observable/observable.js:127:12)
at ViewBase.onLoaded(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:237:10)
at View.onLoaded(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view/view.js:246:31)
at ActionBar.onLoaded(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/action-bar/action-bar.js:155:31)
at (file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:312:85)
at ViewBase.callFunctionWithSuper(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:305:5)
at ViewBase.callLoaded(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:312:10)
at ViewBase.loadView(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:440:12)
at (file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:234:13)
at PageBase.eachChildView(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/page/page-common.js:128:7)
at ViewCommon.eachChild(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view/view-common.js:1010:10)
at ViewBase.onLoaded(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:233:10)
at View.onLoaded(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view/view.js:246:31)
at Page.onLoaded(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/page/page.js:43:31)
at (file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:312:85)
at ViewBase.callFunctionWithSuper(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:305:5)
at ViewBase.callLoaded(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:312:10)
at ViewBase.loadView(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:440:12)
at ViewBase._addViewCore(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:435:12)
at ViewBase._addView(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:421:10)
at FragmentCallbacksImplementation.onCreateView(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/frame/frame.js:687:13)
at FragmentClass.onCreateView(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/frame/fragment.js:26:34)
at com.tns.Runtime.callJSMethodNative(Native Method)
at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1209)
at com.tns.Runtime.callJSMethodImpl(Runtime.java:1096)
at com.tns.Runtime.callJSMethod(Runtime.java:1083)
at com.tns.Runtime.callJSMethod(Runtime.java:1063)
at com.tns.Runtime.callJSMethod(Runtime.java:1055)
at com.tns.FragmentClass.onCreateView(FragmentClass.java:54)
at androidx.fragment.app.Fragment.performCreateView(Fragment.java:2439)
at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManager.java:1460)
at androidx.fragment.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1784)
at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManager.java:1852)
at androidx.fragment.app.BackStackRecord.executeOps(BackStackRecord.java:802)
at androidx.fragment.app.FragmentManagerImpl.executeOps(FragmentManager.java:2625)
at androidx.fragment.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2411)
at androidx.fragment.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2366)
at androidx.fragment.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2273)
at androidx.fragment.app.FragmentManagerImpl$1.run(FragmentManager.java:733)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:179)
at android.app.ActivityThread.main(ActivityThread.java:5769)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:674)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant