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
1
vote
0 answers

Gradle experimental - add assembly file to sources

I am building a JNI application using Android studio and gradle experimental plugin 0.7.0 I want to add an assembly file (*.s) to the list of source files but I can't figure it out. I have used srcDirs but it seems it only adds C/C++ files, I can't…
ammcom
  • 992
  • 1
  • 7
  • 24
1
vote
0 answers

How to enable resource shrinking in Android Studio with experimental Gradle for NDK?

How do you enable resource shrinking in Android Studio when using the experimental Gradle for the NDK? Adding shrinkResources = true to the Gradle settings file next to minifyEnabled = true fails with an obscure error.
Pol
  • 3,848
  • 1
  • 38
  • 55
1
vote
0 answers

How to configure srcDir for components with Android Experimental Gradle Module

I currently have a series of components with java, aidl, assets, resources, jni, and manifests and proguard files to support the components. I would like to deliver AAR files with a number of different combinations of these components. I would like…
1
vote
0 answers

Does anyone knows how can I install the gradle experimental plugin offline?

I have the following files: gradle-experimental-0.7.0-javadoc.jar gradle-experimental-0.7.0-sources.jar gradle-experimental-0.7.0.jar gradle-experimental-0.7.0.pom But I have no idea what to do with them. I want to work with Android Studio and…
Raydel Miranda
  • 13,825
  • 3
  • 38
  • 60
1
vote
1 answer

Android studio 2.1 editor(CLint) unable to find headers of modules that use native(ndk) plugin

It looks like the AndroidStudio 2.1 editor highlights the header file from a native module red as though it is missing. It seems to build and run with no issues though. Anyone facing the same issue? (See attached images below) Also the editor…
1
vote
1 answer

Building libxml2 into NDK with Android Studio and Gradle Experimental

My Android project has been going for a couple of years using Eclipse and ADT. The project makes use of 3 precompiled static libraries (curl, ssl, and crypto), and then compiles and statically links libxml2 in. The relevant lines from Android.mk…
1
vote
1 answer

error porting gradle:2.0.0 to gradle-experimental:0.7.0-beta1?

I have an android studio project, and I'm trying to port gradle from the stable version 2.0.0 to the experimental version 0.7.0-beta1: This is the working code inside my android tag module my 2.0.0 gradle code: android { compileSdkVersion 23 …
alexm
  • 1,285
  • 18
  • 36
1
vote
1 answer

Use renderscript with gradle experimental

I'm developing an application for android in the image processing area. Thus, I need high performance. Part of the code is written in NDK and elsewhere in Renderscript. However, I can not compile the application due to ScriptC_ files are not being…
1
vote
1 answer

Gradle build - Could not determine the dependencies of task ':myLibrary:transformClassesAndResourcesWithProguardForRelease'

I have just migrated my project to gradle-experimental:0.4.0 to use JNI. I have followed the instructions here The project consists of a library and an application. I cannot get round this error (tried the usual clean and invalidate…
1
vote
1 answer

NativeActivity Sample : Error Unknown host 'jcenter.bintray.com' by using gradle experimental plugin

I tried building the nativeActivity code from the samples in Android Studio 1.5.1 but I am getting this error : Error:Unknown host 'jcenter.bintray.com'. You may need to adjust the proxy settings in Gradle. Enable Gradle 'offline mode' and…
1
vote
1 answer

Android Studio: generating .so files using experimental plugin

I have a project in AS with native library. I'm trying to use experimental plugin (gradle-experimental:0.6.0-alpha5) to get .so files (to use it later in System.loadLibrary (). But I can't generate them. And I really can't understand, why? I've used…
1
vote
1 answer

how to import android experimental module

i have experimental(v:0.4.0) android module that use gradle file with model block like this : apply plugin: 'com.android.mode.application' model { android { compileSdkVersion = 21 buildToolsVersion = "21.1.2" defaultConfig.with { …
Hamid Zandi
  • 2,714
  • 24
  • 32
1
vote
0 answers

Use libGDX with gradle-experimental

For a little game project, we have to use gradle-experimental to include shared library and use the NDK, and for the graphics we use the libgdx. Before, we used not experimental gradle and the libgdx works, but now we have an exception : FATAL…
1
vote
1 answer

gradle experimental ndk build only subset of directory

I am using gradle2.9 with the gradle-experimental-0.6.0-alpha3 plugin for android studio and I have a problem I cannot seem to solve. This is my directory structure: TopDir fileA.cpp dirA fileA1.cpp fileA2.cpp I want to compile fileA.cpp,…
downstroy
  • 960
  • 1
  • 9
  • 27
1
vote
1 answer

How to use new gradle experimental in Android Studio

I made a very hello world with Android Studio NDK. As instructed from http://tools.android.com/tech-docs/new-build-system/gradle-experimental, I copied exactly the same (left only some newer build tool version), but the error always appears:…
Cuong Phan
  • 311
  • 1
  • 4
  • 8