Questions tagged [gradle-experimental]

The new experimental gradle plugin for Android

The new experimental plugin is based on Gradle’s new component model mechanism, while allows significant reduction in configuration time. It also includes NDK integration for building JNI applications.

The user guide provides details on how to use it and highlights the difference between the new plugin and the original plugin.

Note that this is plugin is at the experimental stage. The Gradle API for the new component model is not final, which means it’ll only work with a specific version of Gradle until the APIs are final.

Useful links:

107 questions
5
votes
0 answers

Gradle DSL method not found: 'provided()' error with experimental-gradle

I have to use experimental-gradle for native code debug and "provided 'javax.annotation:jsr250-api:1.0'" in build.gradle, but it seems that the experimental version does not support provided grammar, with error message "Gradle DSL method not found:…
RoFF
  • 529
  • 5
  • 27
5
votes
1 answer

Android gradle experimental plugin roadmap

At our company we are developing an Android SDK that contains both Java and native part. We pack the SDK in AAR format that contains all resources, java classes and native bits. According to AAR specification, native libraries should be placed…
DoDo
  • 2,248
  • 2
  • 22
  • 34
4
votes
4 answers

Could not find method androidExtensions()

I want to use the features of kotlin @Parcelize, I have apply the plugin: 'kotlin-android-extensions' on gradle, and I added androidExtensions { experimental = true } but errors continue to appear.this error message : Error:(28, 0) Could…
4
votes
1 answer

In Android Studio 2.1.3 is experimental gradle not working?

I have a project where I mix and match regular Android Gradle Plugin: apply plugin: 'com.android.library' and Experimental Gradle Plugin as a library: apply plugin: 'com.android.model.library' In my overall build.gradle I have the following…
4
votes
0 answers

Configuring maven deploy script with Android Experimental Gradle Plugin

I am working on adding NDK builds to a module of a library I already have deployed in maven. In the past, I used the stable Android Gradle plugin v1.5, but do to needs with the NDK build I am trying to use the experimental plugin (I need to specify…
Jared
  • 1,449
  • 2
  • 19
  • 40
4
votes
1 answer

Gradle: Using string interpolation in model DSL

How can I substitute a project property in a string in a model DSL? I tried the following: apply plugin: 'com.android.model.native' model { android { ... sources { main { jni { …
Sergey Ch.
  • 628
  • 1
  • 7
  • 17
4
votes
1 answer

Error:No such property: manifestPlaceholders for class: com.android.build.gradle.managed.ProductFlavor

I use 'gradle-experimental:0.4.0' and I want to use onesignal sdk for my project. when I try to build the project with the code which have been mentioned in the example here I get this error: Error:No such property: manifestPlaceholders for class: …
alex
  • 1,845
  • 2
  • 9
  • 12
4
votes
1 answer

How do you set APP_PLATFORM in Gradle NDK plug-in in Android Studio?

I'm building an app with an NDK library using Android Studio 1.5.1 and the Gradle experimental plugin 0.4.0. Even though the Gradle config is set as such (with minSdkVersion.apiLevel = 18), it seems like the NDK library is still compiled for…
Pol
  • 3,848
  • 1
  • 38
  • 55
4
votes
1 answer

How do you view the raw Gradle build log for the NDK in Android Studio?

When using the Gradle experimental plugin with Android studio to build an NDK library, how do you see the low-level build log i.e. the compiler invocations for each file with all the arguments etc...?
Pol
  • 3,848
  • 1
  • 38
  • 55
4
votes
2 answers

gradle experimental include file directories via srcDir srcFile directive

Does anyone knows how the includes of srcDir works in gradle experimental files (cpp AND h)? This is kind of a "3-fold" question: 1°) how do the srcDir work? 1.a°) Does it include recursively all subdirs? Does it only include files at their deep…
downstroy
  • 960
  • 1
  • 9
  • 27
4
votes
2 answers

lintOptions for experimental Gradle build tool in Android Studio 1.3

As Android Studio 1.3 coming with NDK support, I tried to convert my Gradle scripts (build.gradle app/build.gradle and gradle-wrapper.properties) following this link http://tools.android.com/tech-docs/new-build-system/gradle-experimental. However, I…
4
votes
1 answer

gradle-experimental:0.1.0 buildConfigField

Anyone know how to define buildConfigField in the experimental gradle plugin? android.productFlavors { create("demo") { applicationId = 'com.anthonymandra.rawdroid' buildConfigField "String", FIELD_META, PROVIDER_META …
3
votes
1 answer

'main' in 'build' cannot be applied to'(groovy.lang.closure'

apply plugin: 'com.android.model.application' model{ android{ ... ndk{ ... } sources{ main{ jni{ sources{ srcDir…
RRR
  • 339
  • 1
  • 6
  • 15
3
votes
0 answers

Gradle or Gradle-Experimental for NDK projects?

Given the recent updates I'm a little lost on what I should be using now. I have been using gradle-experimental successfully but it still misses some of the build options default gradle has. The gradle-experimental documentation has not been updated…
Baggers
  • 3,183
  • 20
  • 31
3
votes
1 answer

Unable to integrate ffmpeg as a native dependency for an Android NDK project

I have an Android NDK project which consists entirely of C/C++ code, and it basically processes images without using any external libraries. I'm using Android Studio + Gradle NDK Experimental plugin (0.7.0-alpha1). Now, I need to integrate ffmpeg as…
mmark
  • 1,204
  • 12
  • 19