2017-11-03 8 views
0

최근 타사 플러그인을 설치하려고했습니다 : https://github.com/bradleygore/nativescript-materialdropdownlist 및 README에 따라 사용했습니다. 내 응용 프로그램을 실행할 때까지 아무 것도 평범하지 않은 것처럼 보였습니다. 오류가 발생했습니다. 나는 그것이 틀린 폴더에있는 플러그 접속을 찾아내는 것을 시도하고 있다는 것을 빨리주의했다.NativeScript 잘못된 디렉토리에서 사용자 정의 플러그인을 찾습니다.

<Page 
     xmlns="http://www.nativescript.org/tns.xsd" 
     xmlns:ns="nativescript-pro-ui/sidedrawer" 
     xmlns:mdl="nativescript-materialdropdownlist" 
     xmlns:drawer="pages/home/shared/drawer" 
     xmlns:header="pages/home/shared/header" 
     class="page" loaded="onNavigatingTo"> 
    <header:header title="{{ title }}" openDrawer="{{ openDrawer }}"/> 
    <ns:RadSideDrawer id="sideDrawer" drawerLocation='Left' showOverNavigation='true'> 
     <ns:RadSideDrawer.drawerContent> 
      <drawer:drawer active="pages/home/rooms/rooms"/> 
     </ns:RadSideDrawer.drawerContent> 
     <ns:RadSideDrawer.mainContent> 
      <ScrollView> 
       <StackLayout> 
        <mdl:MaterialDropdownList col="1" id="ddlColors" itemSeparatorColor="gray" itemRowsHeight="30" items="{{ colors }}" selectedIndex="{{ selectedColorIndex }}"></mdl:MaterialDropdownList> 
       </StackLayout> 
      </ScrollView> 
     </ns:RadSideDrawer.mainContent> 
    </ns:RadSideDrawer> 
</Page> 

스택 추적

System.err: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.greywallsoftware.GWSInternal/com.tns.NativeScriptActivity}: com.tns.NativeScriptException: 
System.err: Calling js method onCreate failed 
System.err: 
System.err: Error: Building UI from XML. @file:///app/pages/home/rooms/rooms.xml:16:21 
System.err: > Module '/data/data/com.greywallsoftware.GWSInternal/files/app/nativescript-materialdropdownlist' not found for element 'nativescript-materialdropdownlist:MaterialDropdownList'. 
System.err: > com.tns.NativeScriptException: Failed to find module: "/data/data/com.greywallsoftware.GWSInternal/files/app/nativescript-materialdropdownlist", relative to: app// 
System.err:  com.tns.Module.resolvePathHelper(Module.java:146) 
System.err:  com.tns.Module.resolvePath(Module.java:55) 
System.err:  com.tns.Runtime.callJSMethodNative(Native Method) 
System.err:  com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1088) 
System.err:  com.tns.Runtime.callJSMethodImpl(Runtime.java:970) 
System.err:  com.tns.Runtime.callJSMethod(Runtime.java:957) 
System.err:  com.tns.Runtime.callJSMethod(Runtime.java:941) 
System.err:  com.tns.Runtime.callJSMethod(Runtime.java:933) 
System.err:  com.tns.NativeScriptActivity.onCreate(NativeScriptActivity.java:13) 
System.err:  android.app.Activity.performCreate(Activity.java:6975) 
System.err:  android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1213) 
System.err:  android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2770) 
System.err:  android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892) 
System.err:  android.app.ActivityThread.-wrap11(Unknown Source:0) 
System.err:  android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593) 
System.err:  android.os.Handler.dispatchMessage(Handler.java:105) 
System.err:  android.os.Looper.loop(Looper.java:164) 
System.err:  android.app.ActivityThread.main(ActivityThread.java:6541) 
System.err:  java.lang.reflect.Method.invoke(Native Method) 
System.err:  com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) 
System.err:  com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767) 
System.err: File: "file:///data/data/com.greywallsoftware.GWSInternal/files/app/tns_modules/tns-core-modules/ui/builder/builder.js, line: 196, column: 20 
System.err: 
System.err: StackTrace: 
System.err:  Frame: function:'ScopeError', file:'file:///data/data/com.greywallsoftware.GWSInternal/files/app/tns_modules/tns-core-modules/utils/debug.js', line: 63, column: 24 
System.err:  Frame: function:'SourceError', file:'file:///data/data/com.greywallsoftware.GWSInternal/files/app/tns_modules/tns-core-modules/utils/debug.js', line: 74, column: 23 
System.err:  Frame: function:'', file:'file:///data/data/com.greywallsoftware.GWSInternal/files/app/tns_modules/tns-core-modules/ui/builder/builder.js', line: 215, column: 17 
System.err:  Frame: function:'', file:'file:///data/data/com.greywallsoftware.GWSInternal/files/app/tns_modules/tns-core-modules/ui/builder/builder.js', line: 196, column: 33 
System.err:  Frame: function:'', file:'file:///data/data/com.greywallsoftware.GWSInternal/files/app/tns_modules/tns-core-modules/xml/xml.js', line: 148, column: 13 
System.err:  Frame: function:'EasySAXParser.parse', file:'file:///data/data/com.greywallsoftware.GWSInternal/files/app/tns_modules/tns-core-modules/js-libs/easysax/easysax.js', line: 751, column: 23 
System.err:  Frame: function:'XmlParser.parse', file:'file:///data/data/com.greywallsoftware.GWSInternal/files/app/tns_modules/tns-core-modules/xml/xml.js', line: 195, column: 22 
System.err:  Frame: function:'XmlStringParser.parse', file:'file:///data/data/com.greywallsoftware.GWSInternal/files/app/tns_modules/tns-core-modules/ui/builder/builder.js', line: 202, column: 27 
System.err:  Frame: function:'parseInternal', file:'file:///data/data/com.greywallsoftware.GWSInternal/files/app/tns_modules/tns-core-modules/ui/builder/builder.js', line: 47, column: 11 
System.err:  Frame: function:'loadPage', file:'file:///data/data/com.greywallsoftware.GWSInternal/files/app/tns_modules/tns-core-modules/ui/builder/builder.js', line: 131, column: 27 
System.err:  Frame: function:'', file:'file:///data/data/com.greywallsoftware.GWSInternal/files/app/tns_modules/tns-core-modules/ui/frame/frame-common.js', line: 112, column: 26 
System.err:  Frame: function:'', file:'file:///data/data/com.greywallsoftware.GWSInternal/files/app/tns_modules/tns-core-modules/ui/frame/frame-common.js', line: 131, column: 20 
System.err:  Frame: function:'FrameBase.navigate', file:'file:///data/data/com.greywallsoftware.GWSInternal/files/app/tns_modules/tns-core-modules/ui/frame/frame-common.js', line: 185, column: 28 
System.err:  Frame: function:'ActivityCallbacksImplementation.onCreate', file:'file:///data/data/com.greywallsoftware.GWSInternal/files/app/tns_modules/tns-core-modules/ui/frame/frame.js', line: 615, column: 19 
System.err:  Frame: function:'NativeScriptActivity.onCreate', file:'file:///data/data/com.greywallsoftware.GWSInternal/files/app/tns_modules/tns-core-modules/ui/frame/activity.js', line: 20, column: 25 
System.err: 
System.err:  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2817) 
System.err:  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892) 
System.err:  at android.app.ActivityThread.-wrap11(Unknown Source:0) 
System.err:  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593) 
System.err:  at android.os.Handler.dispatchMessage(Handler.java:105) 
System.err:  at android.os.Looper.loop(Looper.java:164) 
System.err:  at android.app.ActivityThread.main(ActivityThread.java:6541) 
System.err:  at java.lang.reflect.Method.invoke(Native Method) 
System.err:  at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) 
System.err:  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767) 
System.err: Caused by: com.tns.NativeScriptException: 
System.err: Calling js method onCreate failed 
System.err: 
System.err: Error: Building UI from XML. @file:///app/pages/home/rooms/rooms.xml:16:21 
System.err: > Module '/data/data/com.greywallsoftware.GWSInternal/files/app/nativescript-materialdropdownlist' not found for element 'nativescript-materialdropdownlist:MaterialDropdownList'. 
System.err: > com.tns.NativeScriptException: Failed to find module: "/data/data/com.greywallsoftware.GWSInternal/files/app/nativescript-materialdropdownlist", relative to: app// 
System.err:  com.tns.Module.resolvePathHelper(Module.java:146) 
System.err:  com.tns.Module.resolvePath(Module.java:55) 
System.err:  com.tns.Runtime.callJSMethodNative(Native Method) 
System.err:  com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1088) 
System.err:  com.tns.Runtime.callJSMethodImpl(Runtime.java:970) 
System.err:  com.tns.Runtime.callJSMethod(Runtime.java:957) 
System.err:  com.tns.Runtime.callJSMethod(Runtime.java:941) 
System.err:  com.tns.Runtime.callJSMethod(Runtime.java:933) 
System.err:  com.tns.NativeScriptActivity.onCreate(NativeScriptActivity.java:13) 
System.err:  android.app.Activity.performCreate(Activity.java:6975) 
System.err:  android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1213) 
System.err:  android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2770) 
System.err:  android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892) 
System.err:  android.app.ActivityThread.-wrap11(Unknown Source:0) 
System.err:  android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593) 
System.err:  android.os.Handler.dispatchMessage(Handler.java:105) 
System.err:  android.os.Looper.loop(Looper.java:164) 
System.err:  android.app.ActivityThread.main(ActivityThread.java:6541) 
System.err:  java.lang.reflect.Method.invoke(Native Method) 
System.err:  com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) 
System.err:  com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767) 
System.err: File: "file:///data/data/com.greywallsoftware.GWSInternal/files/app/tns_modules/tns-core-modules/ui/builder/builder.js, line: 196, column: 20 
System.err: 
System.err: StackTrace: 
System.err:  Frame: function:'ScopeError', file:'file:///data/data/com.greywallsoftware.GWSInternal/files/app/tns_modules/tns-core-modules/utils/debug.js', line: 63, column: 24 
System.err:  Frame: function:'SourceError', file:'file:///data/data/com.greywallsoftware.GWSInternal/files/app/tns_modules/tns-core-modules/utils/debug.js', line: 74, column: 23 
System.err:  Frame: function:'', file:'file:///data/data/com.greywallsoftware.GWSInternal/files/app/tns_modules/tns-core-modules/ui/builder/builder.js', line: 215, column: 17 
System.err:  Frame: function:'', file:'file:///data/data/com.greywallsoftware.GWSInternal/files/app/tns_modules/tns-core-modules/ui/builder/builder.js', line: 196, column: 33 
System.err:  Frame: function:'', file:'file:///data/data/com.greywallsoftware.GWSInternal/files/app/tns_modules/tns-core-modules/xml/xml.js', line: 148, column: 13 
System.err:  Frame: function:'EasySAXParser.parse', file:'file:///data/data/com.greywallsoftware.GWSInternal/files/app/tns_modules/tns-core-modules/js-libs/easysax/easysax.js', line: 751, column: 23 
System.err:  Frame: function:'XmlParser.parse', file:'file:///data/data/com.greywallsoftware.GWSInternal/files/app/tns_modules/tns-core-modules/xml/xml.js', line: 195, column: 22 
System.err:  Frame: function:'XmlStringParser.parse', file:'file:///data/data/com.greywallsoftware.GWSInternal/files/app/tns_modules/tns-core-modules/ui/builder/builder.js', line: 202, column: 27 
System.err:  Frame: function:'parseInternal', file:'file:///data/data/com.greywallsoftware.GWSInternal/files/app/tns_modules/tns-core-modules/ui/builder/builder.js', line: 47, column: 11 
System.err:  Frame: function:'loadPage', file:'file:///data/data/com.greywallsoftware.GWSInternal/files/app/tns_modules/tns-core-modules/ui/builder/builder.js', line: 131, column: 27 
System.err:  Frame: function:'', file:'file:///data/data/com.greywallsoftware.GWSInternal/files/app/tns_modules/tns-core-modules/ui/frame/frame-common.js', line: 112, column: 26 
System.err:  Frame: function:'', file:'file:///data/data/com.greywallsoftware.GWSInternal/files/app/tns_modules/tns-core-modules/ui/frame/frame-common.js', line: 131, column: 20 
System.err:  Frame: function:'FrameBase.navigate', file:'file:///data/data/com.greywallsoftware.GWSInternal/files/app/tns_modules/tns-core-modules/ui/frame/frame-common.js', line: 185, column: 28 
System.err:  Frame: function:'ActivityCallbacksImplementation.onCreate', file:'file:///data/data/com.greywallsoftware.GWSInternal/files/app/tns_modules/tns-core-modules/ui/frame/frame.js', line: 615, column: 19 
System.err:  Frame: function:'NativeScriptActivity.onCreate', file:'file:///data/data/com.greywallsoftware.GWSInternal/files/app/tns_modules/tns-core-modules/ui/frame/activity.js', line: 20, column: 25 
System.err: 
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.NativeScriptActivity.onCreate(NativeScriptActivity.java:13) 
System.err:  at android.app.Activity.performCreate(Activity.java:6975) 
System.err:  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1213) 
System.err:  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2770) 
System.err:  ... 9 more 

모듈 내 node_modules 폴더에 확실히이지만, {N}가로드하려고하는 대신에/응용 프로그램/tns_modules/nativescript-의/응용 프로그램/nativescript-materialdropdownlist에서 materialdropdownlist 실제로 빌드 결과에 위치합니다.

플랫폼 폴더를 제거하고 다시 작성해 보았습니다. 난 node_modules 제거하고 모든 것을 다시 설치하려고했습니다. 내가 뭘해야할지 모르겠다.

+0

플러그인은 년 이상에 업데이트되었습니다하지 않는 것 자신의 드롭 다운 기능을 구현합니다. 'tns-core-modules' 버전의 현재 버전과 호환되지 않을 가능성이 있습니다> 3.0 – pkanev

답변

1

플러그인은 NativeScript의 3.x.x와 호환되지 않습니다, another plugin 사용을 고려하거나