Closed abdelhak101 closed 6 years ago
Hi @abdelhak101,
I don't know why this error happen, but already happened some times for me from NS 3. This usually occurs after adding a plugin that has an android library. So, to fix, I need:
./gradlew clean
on platforms/android
tns build android
.thank you @mobilemindtec this solution it's worked for me thank you
Thanks @mobilemindtec - you are correct; the solution is to clean the platform folder, it can get out of sync and not always pull in the new plugin's compiled components.
Btw, The easier way to do this is just do a tns platform clean android
which does the same thing. :-)
Hi ,
I have this error, i am using native script with angular
com.google.android.exoplayer2.ui.playbackcontrolView is not a constructor, undefined..
@NathanaelA I performed tns platform clean android
and now it's not loading images from using res://
JS: Missing Image with resourceID: res://sample
while i have checked that in res folder images are there. Can you please tell me why has this happened?
@sankarVelumani - Sounds like you need to deinstall and re-install the plugin. @umair-ameen - tns platform clean android should install the same version of the platform. Have you done any upgrades to the "nativescript" command recently; they changed the layout of the android resources in 4.x
@NatgabaekA No, I had Angular 6 already installed in the system recently installed NativeScript and havn't done any upgrades.
This happens again on tns-android@latest test version, last working version for this was tns-android@5.4.0-rc-2019-04-02-110853-01
@Tronix117 - I'm going to guess you need to do a tns platform clean android
or might be safer to just nuke/delete your entire platforms folder.
Your statement doesn't make a lot of sense; your saying 5.3.x doesn't work; but 5.4.0rc does work? Are you using the rc/next version of the CLI also?
Hey @NathanaelA, sorry, when I said latest, I meant this one: 5.4.0-rc-2019-05-10-112457-02
5.3.x is working fine, and it's the stable version, so nothing to worry about yet, it may be a bug introduced in latest build, but just wanted to write it down so we can trace it.
@NathanaelA 5.4 has been released and this issue is indeed happening
I released another version yesterday; 4.0 -- you can see if that works. :grinning:
Wow ! Awesome ! So quick, I didn’t see, you rock ! 😉
Jeremy Trufier / Computer Science Expert
jeremy@trufier.com / +33 (0) 6 30 89 24 61 <+33%206%2030%2089%2024%2061>
[image: Skype] https://htmlsig.com/t/0000001BT2VJS [image: LinkedIn] https://htmlsig.com/t/0000001BWF824 [image: Stack Overflow] https://htmlsig.com/t/0000001BQ3D2J [image: Twitter] https://twitter.com/tronix117 [image: Github] https://github.com/tronix117
Le 24 mai 2019 à 20:12:04, Nathanael Anderson (notifications@github.com) a écrit:
I released another version yesterday; 4.0 -- you can see if that works. 😀
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NathanaelA/nativescript-exoplayer/issues/21?email_source=notifications&email_token=AABTUVK2OT6YRX5WHRLDE6LPXAVXJA5CNFSM4EO4JHRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWGFYNI#issuecomment-495737909, or mute the thread https://github.com/notifications/unsubscribe-auth/AABTUVMA2PAUWGWSFXEDNETPXAVXJANCNFSM4EO4JHRA .
hi please i have this error when i run nativescript-exoplayer plugin in angular nativescripte how can fix this
image of the error : https://drive.google.com/file/d/1P9I3FI6HDEAzzvgxrsDKshOLxArUmGlR/view?usp=sharing
error in Debug console :
System.err: com.tns.NativeScriptException: System.err: Calling js method onCreateView failed System.err: TypeError: com.google.android.exoplayer2.ui.PlaybackControlView is not a constructor System.err: File: "file:///data/data/org.nativescript.myapp/files/app/tns_modules/nativescript-exoplayer/videoplayer.js, line: 250, column: 40 System.err: StackTrace: System.err: Frame: function:'Video._setupMediaController', file:'file:///data/data/org.nativescript.myapp/files/app/tns_modules/nativescript-exoplayer/videoplayer.js', line: 250, column: 41 System.err: Frame: function:'Video.initNativeView', file:'file:///data/data/org.nativescript.myapp/files/app/tns_modules/nativescript-exoplayer/videoplayer.js', line: 110, column: 14 System.err: Frame: function:'ViewBase.setNativeView', file:'file:///data/data/org.nativescript.myapp/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js', line: 470, column: 18 System.err: Frame: function:'ViewBase._setupUI', file:'file:///data/data/org.nativescript.myapp/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js', line: 449, column: 14 System.err: Frame: function:'', file:'file:///data/data/org.nativescript.myapp/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js', line: 456, column: 19 System.err: Frame: function:'LayoutBaseCommon.eachChildView', file:'file:///data/data/org.nativescript.myapp/files/app/tns_modules/tns-core-modules/ui/layouts/layout-base-common.js', line: 125, column: 26 System.err: Frame: function:'ViewCommon.eachChild', file:'file:///data/data/org.nativescript.myapp/files/app/tns_modules/tns-core-modules/ui/core/view/view-common.js', line: 699, column: 14 System.err: Frame: function:'ViewBase._setupUI', file:'file:///data/data/org.nativescript.myapp/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js', line: 455, column: 14 System.err: Frame: function:'', file:'file:///data/data/org.nativescript.myapp/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js', line: 456, column: 19 System.err: Frame: function:'ContentView.eachChildView', file:'file:///data/data/org.nativescript.myapp/files/app/tns_modules/tns-core-modules/ui/content-view/content-view.js', line: 70, column: 13 System.err: Frame: function:'PageBase.eachChildView', file:'file:///data/data/org.nativescript.myapp/files/app/tns_modules/tns-core-modules/ui/page/page-common.js', line: 206, column: 40 System.err: Frame: function:'ViewCommon.eachChild', file:'file:///data/data/org.nativescript.myapp/files/app/tns_modules/tns-core-modules/ui/core/view/view-common.js', line: 699, column: 14 System.err: Frame: function:'ViewBase._setupUI', file:'file:///data/data/org.nativescript.myapp/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js', line: 455, column: 14 System.err: Frame: function:'ViewBase._addViewCore', file:'file:///data/data/org.nativescript.myapp/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js', line: 357, column: 18 System.err: Frame: function:'ViewBase._addView', file:'file:///data/data/org.nativescript.myapp/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js', line: 346, column: 14 System.err: Frame: function:'FragmentCallbacksImplementation.onCreateView', file:'file:///data/data/org.nativescript.myapp/files/app/tns_modules/tns-core-modules/ui/frame/frame.js', line: 504, column: 24 System.err: Frame: function:'FragmentClass.onCreateView', file:'file:///data/data/org.nativescript.myapp/files/app/tns_modules/tns-core-modules/ui/frame/fragment.js', line: 27, column: 38 System.err: at com.tns.Runtime.callJSMethodNative(Native Method) System.err: at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1088) System.err: at com.tns.Runtime.callJSMethodImpl(Runtime.java:970) System.err: at com.tns.Runtime.callJSMethod(Runtime.java:957) System.err: at com.tns.Runtime.callJSMethod(Runtime.java:941) System.err: at com.tns.Runtime.callJSMethod(Runtime.java:933) System.err: at com.tns.FragmentClass.onCreateView(FragmentClass.java:40) System.err: at android.app.Fragment.performCreateView(Fragment.java:2053) System.err: at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:894) System.err: at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067) System.err: at android.app.BackStackRecord.run(BackStackRecord.java:834) System.err: at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1452) System.err: at android.app.FragmentManagerImpl$1.run(FragmentManager.java:447) System.err: at android.os.Handler.handleCallback(Handler.java:739) System.err: at android.os.Handler.dispatchMessage(Handler.java:95) System.err: at android.os.Looper.loop(Looper.java:135) System.err: at android.app.ActivityThread.main(ActivityThread.java:5254) System.err: at java.lang.reflect.Method.invoke(Native Method) System.err: at java.lang.reflect.Method.invoke(Method.java:372) System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) ActivityManager: Process org.nativescript.myapp (pid 2427) has died