我不能从除草添加平台,只能从weexpack添加平台
drew@drew-Aspire-E1-571G ~/Work/Weex/awesome-project $ weexpack platform add android
Error: Current working directory is not a weexpack project而且我不能将weex编译到android项目中。
。
发布于 2017-05-30 07:52:08
如果您使用weex工具箱,您应该自己创建一些文件和dir,包括:
dirs:
档案:
编辑config.xml
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.alibaba.weex" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>MyApp1</name>
<description>
A sample Apache Cordova application that responds to the deviceready event.
</description>
<author email="dev@cordova.apache.org" href="http://cordova.io">
Apache Cordova Team
</author>
<content src="index.html" />
<plugin name="cordova-plugin-whitelist" spec="1" />
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<platform name="android">
<allow-intent href="market:*" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
</platform>
</widget>在当前版本中,还可以使用weex create创建weexpack项目。
当然,初学者工具包也可能对您有帮助:https://github.com/elemefe/weex-vue-starter-kit
https://stackoverflow.com/questions/44232124
复制相似问题