natjs / nat

A powerful kit for adding native functionalities to your weex app.
http://natjs.com
282 stars 25 forks source link

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

Closed heshan-song closed 6 years ago

heshan-song commented 6 years ago

我第一次 使用weex 构建项目 安装nat插件, 安装了natjs 然后 安装 我 运行 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 页面 也调用不了,是怎么会呢?

sushilparajuli commented 6 years ago

@heshan-song , Try weex plugin add nat-media-image. I had similar issue using weexpack but using weex add works fine

heshan-song commented 6 years ago

@sushilparajuli , D:\xuexi\weex\demo-all-02>weex plugin add nat-media-image This plugin support for Android,iOS platforms. 17:01:17 : nat-media-image has installed success in Android project. 17:01:17 : if you want to update it, please use weex plugin update command. 17:01:17 : nat-media-image has installed success in iOS project. 17:01:17 : if you want to update it, please use weex plugin update command.

Prompt installation is successful, but it still can't run

sushilparajuli commented 6 years ago

@heshan-song , Can you post your issue screenshot/gif here so I can help? I am successfully running on latest weex environment .

heshan-song commented 6 years ago

@sushilparajuli qq 20180328150314 Prompt installation is successful,

There is no'weex-plugin-media-image'plug-in project in the'plugins' directory

Please give me one of your engineering catalogues, or give me a 'demo'. I'll refer to it, OK, thank you.

sushilparajuli commented 6 years ago

@heshan-song , I think you should probably check out this repo: https://github.com/natjs/nat-explorer and post your code implementation error like How are you calling the method and getting an error? I am just running successfully into my latest weex and interested to help you. Thanks

heshan-song commented 6 years ago

@sushilparajuli , thank you. thank you. thank you.

luanxuechao commented 6 years ago

@heshan-song 你解决了这个问题了吗? 我也遇到了

acathur commented 6 years ago

@heshan-song @luanxuechao please provide your logs

luanxuechao commented 6 years ago

no logs terminal show success but not found

luanxuechao commented 6 years ago
7fe58e62142cd6cf39c6b6631d08265b 413622d47bd143addab7e4d44ddcf9ac

can you give me some advance ,my email address luanxuechaowd@gmail.com, look forword you reply

acathur commented 6 years ago

@luanxuechao please check your weex-toolkit version (use weex -v), make sure your weex-toolkit's version is v1.x and your weex project is created by the newest version

luanxuechao commented 6 years ago

@Acathur 是的 1523966472888

zhangjanp commented 6 years ago

https://github.com/alibaba/weex/issues/3156 @heshan-song

acathur commented 6 years ago

@luanxuechao 插件安装正确吗?weex plugin add nat-camera (注意调用摄像头的插件是camera,而非media-image)