You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@weex.apache.org by GitBox <gi...@apache.org> on 2018/09/28 15:44:36 UTC

[GitHub] fantasysea opened a new issue #1596: android使用源码导入工程失败,界面显示 reader error -1001

fantasysea opened a new issue #1596: android使用源码导入工程失败,界面显示 reader error -1001
URL: https://github.com/apache/incubator-weex/issues/1596
 
 
   # 我使用weex 中文文档上写的源码方式导入现有的Android工程
   ## 导入步骤:
    - 下载源码 git clone https://github.com/apache/incubator-weex.git
    -  创建 Android 工程。
    -  通过以下路径引入 SDK Module
    -  File->New-Import Module-> 选择 WEEX SDK Module(weex/android/sdk) -> Finish
    -  app 的 build.gradle 中添加如下依赖:compile project(':sdk')
   导入之后编译报错找不到  **path '../../weex_core/CMakeLists.txt'** 然后我把weex_core源码也导入了,编译继续报错,切换了NDK 14之后可以编译了。有几个小冲突,是因为recyleview缺少了。继续导入。最后成功编译了。但是打开页面。不是报错 reader error -1001,就是不显示页面。
   
   **PS:文档真的和实际很不一样,怎么才能正确的用源码方式开发?**
   
   log日志:
   
   ```
   
   09-28 23:34:32.983 12385-12438/com.chaomeng.myapplication E/WeexCore: failed find class WMBridge
   09-28 23:34:32.983 12385-12438/com.chaomeng.myapplication W/System.err: java.lang.ClassNotFoundException: Didn't find class "com.taobao.windmill.bridge.WMLBridge" on path: DexPathList[[zip file "/data/app/com.chaomeng.myapplication-2/base.apk"],nativeLibraryDirectories=[/data/app/com.chaomeng.myapplication-2/lib/arm, /data/app/com.chaomeng.myapplication-2/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]
   09-28 23:34:32.984 12385-12438/com.chaomeng.myapplication W/System.err:     at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
           at java.lang.Runtime.nativeLoad(Native Method)
           at java.lang.Runtime.doLoad(Runtime.java:435)
           at java.lang.Runtime.loadLibrary(Runtime.java:370)
           at java.lang.System.loadLibrary(System.java:1076)
           at com.taobao.weex.utils.WXSoInstallMgrSdk.initSo(WXSoInstallMgrSdk.java:140)
           at com.taobao.weex.WXSDKEngine$1.run(WXSDKEngine.java:226)
           at com.taobao.weex.common.WXThread$SafeRunnable.run(WXThread.java:48)
           at android.os.Handler.handleCallback(Handler.java:815)
           at android.os.Handler.dispatchMessage(Handler.java:104)
           at android.os.Looper.loop(Looper.java:207)
           at android.os.HandlerThread.run(HandlerThread.java:61)
       	Suppressed: java.lang.ClassNotFoundException: com.taobao.windmill.bridge.WMLBridge
           at java.lang.Class.classForName(Native Method)
           at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
           at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
       		... 12 more
       	Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
   
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services