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
3
votes
1 answer

Detect Android deployment target from Gradle build file

I'm looking to extend my gradle build with a call to an external tool. The issue is that I need to provide the current CPU architecture that is currently being targeted, for example armeabi or arm64-v8a if the user has chosen to deploy to a…
blyn
  • 33
  • 2
3
votes
2 answers

Android Studio 2.0 breaks ndk build with gradle-experimental plugin

After updating Android Studio to version 2.0 (stable), the Gradle sync for my project is broken. Error popup: Android Gradle Plugin Update Required The project is using an incompatible version of the Android Gradle plugin. To configure the…
3
votes
0 answers

Using native OpenCV 3.0.0 in Android Studio 1.5 with Gradle experimental 0.4.0

I'm trying to get OpenCV 3.0.0 native to run in my Android Studio 1.5 with Gradle experimental 0.4.0. I can already use the Java components of OpenCV and the regular NDK functions. But as soon as I try to use the namespace cv in my native code I…
Dresaan
  • 53
  • 1
  • 6
3
votes
2 answers

What has useLibrary changed to in gradle experimental 0.6.0-alpha1?

I am trying to port my gradle.build over to gradle experimental. I have modified my existing android configuration over as below: android { compileSdkVersion = compileSdk buildToolsVersion = buildTools useLibrary…
3
votes
1 answer

Where is the detailed documentation for the experimental Gradle with NDK support for Android Studio?

Where is the actual documentation for the experimental Gradle with NDK support for Android Studio? I mean the documentation with a full list of settings supported in the Gradle config, the list of releases with changes, etc... After extensive…
Pol
  • 3,848
  • 1
  • 38
  • 55
3
votes
1 answer

Issue when migrating to Gradle Experimental 2.5 : no such method AndroidConfig

I have just updated my Android Studio setup to 1.3 (latest stable as of 31st of August 2015) and I need to use the latest NDK integration. My previous Android Studio version was 1.2.1 (stable as well). Following Google Migration to Gradle…
Mackovich
  • 3,319
  • 6
  • 35
  • 73
2
votes
1 answer

Android experimental gradle plugin & Android Studio 3

I have an Android project and we have been using the experimental Gradle Plugin for some time. with Android Studio 3 being announced and the move to Gradle 4, I have a couple of questions In just looking no one has added a new experimental gradle…
2
votes
0 answers

android FCM with gradle experimental gives 'FirebaseApp initialization unsuccessful'

I am using a gradle experimental in my project.And have some native c/c++ code. I made a normal project without any c/c++ code and implemented FCM it worked properly and give an fcm token . But when i am using gradle experimental i.e classpath…
2
votes
1 answer

How to limit target platform with android gradle-experimental?

When running my android application Android Studio prints error: Error:Execution failed for task ':app:processAndroidArmDebugJniLibs'. > java.io.FileNotFoundException: \distribution\wb\lib\x86\libwb.so (The system cannot find the path…
jozols
  • 560
  • 7
  • 22
2
votes
0 answers

Gradle experimental android library module dependency not executed

I am using the gradle experimental plugin 0.7.3. In my project i have several native modules which are statically linked to my android library module where a shared library is built from them and used in the library java code. The library module is…
2
votes
2 answers

How can I move the AndroidManifest.xml file with the experimental gradle plugin 0.7.x?

I'm trying to change the location of the AndroidManifest.xml file when using the experimental gradle plugin version 0.7.x. The reason for doing this is that I generate the file (as there is no manifest merger/property replacer in the experimental…
the_jk
  • 539
  • 2
  • 10
2
votes
1 answer

Native libraries (*.so) files missing in the aar file(if dependent library is a shared library)

I am Using Android Studio 1.5.1 Gradle version 2.8. Gradle experimental plugin v0.4.0 I have a library with native C code and java code as well. I am generating a library CoreLib-fat-release.aar with native libraries for all…
2
votes
1 answer

Android NDK sourceSets.main coundn't find jni

Like above, my build.gradle file cannot sync because it could not find property "jni" on source sets "main". I'm using gradle-experimental:0.7.0. I wan't to use Android.mk file in compilation, but i cannot set srcDirs = []. My build.gradle: model…
2
votes
0 answers

Android native dependencies

Supposedly we can now define dependencies on native-only libraries, but I'm having an issue adding multiple dependencies. apply plugin: 'com.android.model.library' model { android { compileSdkVersion 23 buildToolsVersion…
Anthony
  • 7,638
  • 3
  • 38
  • 71
2
votes
0 answers

Error:Could not find property 'manifest' on source set 'main'. with experimental gradle plugin 0.6.0 beta5

"Error:Could not find property 'manifest' on source set 'main'" comes to console when I use following build.gradle Note:experimental gradle plugin with version 0.6.0-beta5 build.gradle: buildscript { repositories { jcenter() } …
RoFF
  • 529
  • 5
  • 27