如何在Codename One Android项目中为build.gradle添加`apply plugin`以添加本机库? [英] How to add `apply plugin` to build.gradle in Codename One Android project in order to add native library?
问题描述
我在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';
这篇关于如何在Codename One Android项目中为build.gradle添加`apply plugin`以添加本机库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!