-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
weexpack+natjs #10
Comments
请提供一下Android Studio的报错日志 |
我也遇到这个问题 以下是android stutdio 中错误提示 E/SafeRunnable: SafeRunnable run throw expection:java.lang.reflect.InvocationTargetException |
起因是我使用natjs调用摄像头会闪退,以及页面无法跳转。而nat-explorer下载的没有问题。我创建的工程如下:
weexpack create xxx // 安装配置使用最新的weex、babel-stage-0以及没有使用vue-router cd xxx npm install npm install natjs --save npm install less less-loader pug --save-dev weexpack platform add android weexpack plugin add xxx-camear xxx-image xxx-modal
在
AndroidManifest.xml
添加然后把
nat-explorer
源码内src
目录下拷贝过来一份npm run android
成功安装app,首页也没有问题。问题在于无法点击进去子页面。
nat.toast
点击路径,是和nat-explorer
一致的。na-explorer/src/views/camera.vue
。这个时候应用闪退。weex文档实在太少,希望作者解答。
之后,我下载了
nat-explorer
源码,然后npm install & npm run android
。这个是没有问题的。和下载的app一样。
请问这两个还有什么细节上实现差异吗?
The text was updated successfully, but these errors were encountered: