weex-plugins / Gcanvas-For-Apache-weex

Gcanvas is a third party plugin, and is not developed nor maintained by Apache Weex.
49 stars 9 forks source link

Web版无法运行 #39

Open ellisez opened 6 years ago

ellisez commented 6 years ago

week_sdk 0.16.0上运行,weex.supports is not a function

12-21 18:05:10.176 15263-15296/com.alibaba.weexTest E/weex: reportJSException >>>> instanceId:1, exception function:createInstance, exception:Exception: TypeError: weex.supports is not a function. (In 'weex.supports("@weex-module/userTrack")', 'weex.supports' is undefined) start@(global function):8:6552 ready@(global function):8:56268 (weex framework):1:17285 forEach@[native code] Ze@(weex framework):1:17266 Te@(weex framework):1:11824 rt@(weex framework):1:18899 pt@(weex framework):1:21636 a@(weex framework):1:23909 (global function):8:56804 e@(global function):8:105 (global function):8:478 (global function):8:487 anonymous@(global function):10:3 Et@(weex framework):1:25336 At@(weex framework):1:26414 (weex framework):8:22648

看了weex官网文档,x2.0之后才有weex.supports week_sdk.aar v0.16.0是否仍然沿用weex1.0 所以才出现这个错误?

如何解决,求助

ellisez commented 6 years ago

发现一个严重的问题web版使用的是weex2.0而Android版使用的则是weex1.0,方才导致上述问题。

请问Android版weex_sdk.0.16.0相当于weex-toolkit的什么版本号?

如果出现了__weex_define__或weex.support等问题的话,那么就无法做到一份代码web与Android,ios都可运行

望解答