如何在Codename One Android项目中为build.gradle添加`apply plugin`以添加本机库?

如何在Codename One Android项目中为build.gradle添加`apply plugin`以添加本机库?

问题描述:

我在Codename One的网站上浏览了高级主题找到了有关如何实现本机Android库指令的任何内容,这些指令需要在应用程序的顶级版本中添加 apply plugin:[plugin name here] 。 gradle 文件。

I looked through the Advanced Topics on Codename One's website but haven't found anything on how to implement instructions for native Android libraries that require adding apply plugin:[plugin name here] to the application's top-level build.gradle file.

有没有办法做到这一点?

Is there a way to do this?

目前没有添加新插件条目的方法,我添加了新的构建提示 android.gradlePlugin 应在下次服务器更新时提供(2017年9月29日星期五)。

There is no current way of adding a new plugin entry, I've added a new build hint android.gradlePlugin which should be available in the next server update (Friday 29th of September 2017).

您应该能够像这样使用它(未经测试):

You should be able to use it like this (untested):

android.gradlePlugin=apply plugin: 'pluginA';apply plugin: 'pluginB';