Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

1.将最新的weex sdk 集成到android应用, 加载通过 vue 文件转换的 js 文件, 提示错误。
引入的是最新 sdk

 compile 'com.taobao.android:weex_sdk:0.10.0@aar'

vue 文件时最简单的 hello world

<template>
  <div>
    <text style="font-size: 100px;">Hello World.</text>
  </div>
</template>

然而总是提示错误。。

03-03 11:55:02.426 7414-7443/com.example.weex E/jsengine:  ReportException :(weex):49: ReferenceError: __weex_define__ is not defined
03-03 11:55:02.431 7414-7443/com.example.weex E/jsengine:  ReportException : ReferenceError: __weex_define__ is not defined
                                                              at Object.<anonymous> ((weex):49:2)
                                                              at __webpack_require__ ((weex):20:30)
                                                              at (weex):40:18
                                                              at (weex):43:10
03-03 11:55:02.431 7414-7443/com.example.weex E/weex: reportJSException >>>> instanceId:null, exception function:, exception:ReferenceError: __weex_define__ is not defined

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
417 views
Welcome To Ask or Share your Answers For Others

1 Answer

加入这个试试

compile 'com.taobao.android:weex_inspector:0.10.0.5'

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share

548k questions

547k answers

4 comments

86.3k users

...