Hi,

I have been digging my issues and this is what I found:

1- I am really using the latest playground app. My project is using this
code:
https://github.com/weexteam/generator-weex-plugin/tree/feature-generator/generators/app/templates/playground/android

2- I had to make the following changes:

*playground/android/build.gradle:*
 - removed Alibaba maven repositories and added mavenCentral()
 - Android Studio upgraded gradle to 3.0.0

*playground/**android/app/build.gradle:*
 - commented the lines
// compile ('com.taobao.android:weex_debug:0.0.1@aar') {
// transitive = false
// }

*android/library/build.gradle:*
 - add the line
annotationProcessor 'org.weex.plugin:processor:1.0.2'

3- Android Studio made other changes automatically, like sdk versions etc.

4- *In the end, the playground app runs but it shows the demo playground
app instead of the app with the plugin.*

I am sorry I couldn't find all the issues. Probably some of the problems
are caused by my machine set up...

Any clues?

Thanks!
Tiago

On Tue, 7 Nov 2017 at 00:08 Tiago Alves <[email protected]> wrote:

> Hi!
>
> Unfortunately, the android project still doesn't open.
>
> I am opening the project in Android Studio from the
> playground/android/build.gradle. Android Studio stays loading forever with
> the message:
> Gradle: Resolve dependencies ':app:_debugCompile...
>
> This is my setup:
> ➜  ios git:(master) ✗ weex -v
>    v1.1.0-beta.6
>  - weexpack : v0.4.7-beta.19
>  - weex-builder : v0.2.13-beta.4
>  - weex-devtool : v0.3.2-beta.7
>  - weex-previewer : v1.3.13-beta.8
>
> Am I doing something wrong?
>
> Thanks,
> Tiago
>
> On Mon, 6 Nov 2017 at 12:52 Tiago Alves <[email protected]> wrote:
>
>> Thanks! I will try that.
>>
>> Tiago
>>
>> On Mon, 6 Nov 2017 at 09:42 misakuo <[email protected]> wrote:
>>
>>> Hi Tiago,
>>>
>>> We found the old version of weexpack relied on an incorrect android
>>> project
>>> template that missing some necessary files. We just released a new
>>> version
>>> of weexpack,  you can upgrade it according to the following steps:
>>>
>>> 1. run " rm -rf ~/.xtoolkit/node_modules/weexpack "
>>> 2. run " weex update weexpack "
>>> 3. create a new plugin project using " weex plugin create xxx "
>>>
>>> Then you should be able to run playground app inslde the plugin project
>>> correctly. If you have any other questions, just feel free to ask us.
>>>
>>> Cheers.
>>> Misakuo
>>>
>>>
>>> 2017-11-05 2:06 GMT+08:00 Tiago Alves <[email protected]>:
>>>
>>> > Good day!
>>> >
>>> > I am developing a weex plugin. I feel it will be a great oportunity
>>> for me
>>> > to help improving the plugin docs.
>>> >
>>> > I remember reading docs about developing a weex plugin (plugin.xml,
>>> etc),
>>> > but thats seems to be gone along with the legacy stuff. Is there any
>>> docs
>>> > that would help me getting started?
>>> >
>>> > I am using this plugin as reference
>>> > https://github.com/weex-plugins/weex-amap, but this sort of reverse
>>> > engineering gives the constant feeling that I am missing out on
>>> something.
>>> >
>>> > Thanks!
>>> > Tiago
>>> >
>>>
>>

Reply via email to