How to add `apply plugin` to build.gradle in Codename One Android project in order to add native library?

烂漫一生 提交于 2019-12-07 13:26:05

问题


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?


回答1:


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';


来源:https://stackoverflow.com/questions/46416226/how-to-add-apply-plugin-to-build-gradle-in-codename-one-android-project-in-ord

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!