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

Adapt Gradle of Module to experimental Android

Which changes do I need for this Gradle from one module if I am sing the experimental tools gradle in my top gradle project? buildscript { repositories { jcenter() } dependencies { classpath…
Jon
  • 693
  • 8
  • 17
0
votes
1 answer

How to configure multiple java source directories using Android Studio Experimental Grade plugin?

Using Android Studio 2.1.1 with Experimental Grade plugin 0.7.2, I'm trying to add another Java source code directory to the module. Here's the relevant section from the module Gradle settings: android.sources { main { java.source { …
Pol
  • 3,848
  • 1
  • 38
  • 55
0
votes
1 answer

define LOCAL_C_INCLUDES in gradle ndk{} DSL?

How can i define LOCAL_C_INCLUDES inside ndk{} block of my module gradle?? This ndk block of my module gradle file: ndk { platformVersion = 21; moduleName "main" toolchain = "clang" stl =…
Arpan Sarkar
  • 2,301
  • 2
  • 13
  • 24
0
votes
1 answer

build:gradle-experimental:0.4.0 include Wearable app

I have a working app in Android Studio using classpath 'com.android.tools.build:gradle-experimental:0.4.0' and gradle 2.8. As mentioned in google docs, to include your wearable app with your APK, you need to declare the wear app into the phone app…
Adrian Ivasku
  • 1,118
  • 3
  • 16
  • 31
0
votes
1 answer

gradle experimental library link order

I am trying to build an application using android gradle experimental plugin 0.7.0-alpha5. I have an application "mainProject" that depends on a native library "nativeLibrary", which itself depends on several other library (either precompiled or…
0
votes
1 answer

NDK module not included in final APK

I've inherited a really messy android project with a lot of NDK dependencies and having a lot of problems with getting gradle to correctly link and include all .so and .a files into the resulting apk. The project consists of some java code that sets…
monoceres
  • 4,722
  • 4
  • 38
  • 63
0
votes
0 answers

How to specify task in gradle 2.12 with android

I'm using gradle 2.12 with build tools 'com.android.tools.build:gradle-experimental:0.6.0-alpha5'. I want to specify some task and I have trouble understanding the syntax. I'm getting errors in the task syntax part. Can someone post an example…
an96
  • 31
  • 2
  • 5
0
votes
1 answer

How to access model.android properties outside model

Along the lines of this: Build.Gradle apply plugin: 'com.android.model.application' model { android { compileSdkVersion = 19 ... } android.buildTypes { debug release } ... } //How to access…
0
votes
1 answer

"Error:Cause: org.gradle.model.internal.report.unbound.UnboundRule" when using experimental gradle 0.6.0

following this article http://tools.android.com/tech-docs/new-build-system/gradle-experimental to make my project debugged with AndroidStudio with following gradle config, error "Error:Cause: org.gradle.model.internal.report.unbound.UnboundRule" is…
RoFF
  • 529
  • 5
  • 27
0
votes
1 answer

Missing c standard library symbols when loading NDK library on Kindle Fire

My Android app has an NDK library. When running it on a Kindle Fire HD with Fire OS 4.5.5, the app fails to load the NDK library because some C standard library symbols are unresolved i.e. they appear to be entirely…
Pol
  • 3,848
  • 1
  • 38
  • 55
0
votes
2 answers

Plugin with id 'com.android.application' not found

Error:(1, 0) Plugin with id 'com.android.application' not found i googled and searching since 3days but didn't get solution..... stuck totally ** i gradle version :2.5.. **build.gradle(projetc:android) // Top-level build file where you…
aezaz
  • 13
  • 2
  • 8
0
votes
1 answer

Android Gradle Experimental & RenderScript implementation

I'm trying to use Gradle Experimental. As of now I don't seem to find a way to implement RenderScript Support Library that I need for blur effects: https://developer.android.com/guide/topics/renderscript/compute.html#access-rs-apis This is the…
Mackovich
  • 3,319
  • 6
  • 35
  • 73
0
votes
2 answers

cocos2dx-based project in android-studio using gradle-experimental plugin

I have a gradle-experimental 0.6.0-alpha1 compliant build.gradle file: apply plugin: 'com.android.model.application' model { android { compileSdkVersion = 21 buildToolsVersion = "23.0.2" defaultConfig.with { …
0
votes
1 answer

Android Studio, NDK - Cannot Run Application

I have managed to (finally) build a test SDL2 app with Android Studio & NDK using the Gradle experimental plugin. When I try to run the project, it won't run. I get the following…
SparkyNZ
  • 6,266
  • 7
  • 39
  • 80
0
votes
1 answer

Whats the difference between gradle and gradle-experimental?

I know that new versions both support NDK for android applications. But many plugins doesnt work with gradle-experimental.