Comments (3)
正常来说,如果js已经在asset下生成,应该是配置上去了,还要配置上新的java文件和在AndroidManifest中配置上,具体在项目里应该是 WXPageSampleActivity
from gsygithubappweex.
@CarGuo
对于 WXPageSampleActivity 我也已经配置了,忘了说了
很奇怪的地方在于,我将您的项目编译运行到我的手机(MX4)上可以正常打开,而且在 android 的 assets/dist 目录下依然只有一个 person.js 文件,可是到了我这里编译运行到手机中在 assets/dist 目录下有两个js文件,正是我在 webpack.common.conf.js 的 entry 下配置的 KGMainPage.js , 所以我也很纳闷,步骤完全一致,但就是报错,更让我觉得不解的在于您的andorid 项目中 person.js 文件中只有区区六七十行 js 代码,而我的两个 js 文件中的每个文件的 js 代码高达 5万多行,您还做了什么其他的配置吗? 我真的找不出来了
from gsygithubappweex.
已解决,我将项目版本重新回退到上一个版本,然后重新进行配置,一切正常, 后经过仔细排查发现是在 src/store.js 文件中将 import Vuex from 'vuex' 错写成 import Vuex from 'vue' (我自己都蒙逼啥时候变成 vue 了)导致 Vuex store 初始化失败
PS: 回想以往,store使用正常,不知道为毛会这样,一点印象都没有,怪不得死活找不出来,close issue
from gsygithubappweex.
Related Issues (20)
- 登陸的賬戶是github? HOT 1
- weex debug ios扫码空白 HOT 5
- Utils.env已经失效 HOT 2
- ios模拟器登陆失败 HOT 3
- 请问使用vuex报错 Vue is not defined你怎解决的 HOT 5
- 请问启动时出现问题 HOT 2
- weex run android
- wxc-taber 嵌套Vue页面在 Web 端不显示
- ttt
- 安卓首页 render error :-2013
- 应用过期了? HOT 1
- 缺少文件,Error: Can't resolve '../common/ignoreConfig' HOT 2
- weex-ui中util工具有文档吗 HOT 2
- 如果出现登陆失败或者请求失败
- 天空
- 您好,请问安卓上是怎么实现box-shadow的?
- 能否结合项目写一篇博客全面的分析RN、Flutter和Weex开发的优缺点? HOT 2
- 登录密码帐号是多少呀
- 1. 关于APK登陆无效问题 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gsygithubappweex.