Skip to content
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

插件添加成功 使用不了 #3156

Closed
heshan-song opened this issue Mar 27, 2018 · 3 comments
Closed

插件添加成功 使用不了 #3156

heshan-song opened this issue Mar 27, 2018 · 3 comments

Comments

@heshan-song
Copy link

我第一次 使用weex 构建项目
安装weex插件,运行 weexpack plugin add nat-media-image

在plugins 目录下 有一个 json 文件
里面是 是一些 插件 列表
{
"type": "maven",
"groupId": "com.instapp.nat",
"name": "weex-plugin-media-image",
"version": "1.0.1",
"dependency": "com.instapp.nat:weex-plugin-media-image:1.0.1"
},

但是 我发现platforms 平台里面的 ios 安卓 目录 里面 没有 所谓的 weex-plugin-media-image 项目,我在vue 页面 也调用不了,是怎么会呢?

@zhangjanp
Copy link

zhangjanp commented Apr 24, 2018

hello weex plugin add 的机智已经修改了哟。
android 改为和ios 引用方式一样。
生成一份.weex_plugin.json文本文件。

android 根据新版本的plugin加载器导入依赖的插件

compile 'com.taobao.android:weexplugin-loader:1.3' compile 'com.taobao.android:weexplugin-processor:1.3' compile 'com.taobao.android:weexplugin-annotation:1.3'
具体对比一下 weex create 生成的项目

或者这么引用

compile 'com.instapp.nat:weex-plugin-media-image:1.0.1'

相关地址: https://bintray.com/natjs/nat/weex-plugin-media-image

@YorkShen
Copy link
Contributor

This PR/issue doesn't received response since Weex migrated to Apache two years ago and this repository is no longer active yet.

Feel free to ask question in new repository and thanks for your contribution.

@Hanks10100
Copy link
Member

This issue is outdated for a long time and will be closed now. You can create a new one if you still have questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants