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
2
votes
0 answers

Android native toolchain gradle

I'm familiar with the android-gradle-experimental family of plugins including the standalone native plugin. However, I have shared libraries that I build for many platforms. I also want to cross compile them for the android platform in order to use…
2
votes
2 answers

NDK UnsatisfiedLinkError when lowering project api level 21 to 19

I made project using ndk with api level 21. But some reasons, I downgraded project api level 21 to 19. My project worked fine in api 21, But after downgrading my project gives error in NDK part. This is my error code when my project runs…
inin
  • 372
  • 1
  • 4
  • 17
2
votes
1 answer

How to add openssl lib in android studio with experimental gradle plugin (NDK)?

I'm trying to add openSSL library to my project in android studio 2.0 preview 7 with experimental gradle plugin. dependencies { classpath 'com.android.tools.build:gradle-experimental:0.4.0' } What I did is that I downloaded the openSSL library…
2
votes
0 answers

Flavor specific compile fileTree to include different .jar files

I`m using com.android.tools.build:gradle-experimental:0.6.0-alpha3 plugin in my project. My Build gradle looks like: apply plugin: 'com.android.model.application' model { android { compileSdkVersion = 19 buildToolsVersion =…
FreTFuL
  • 43
  • 4
2
votes
0 answers

Using precompiled headers in gradle experimental

I want to include a file "abc.h" in every header. So, how should I include this precompiled header. I searched for something like this android.sources { main { jni { source { srcDirs += ['./src/main/jni/abc'] …
1
vote
1 answer

Is it healthy for my application to go live with Kotlin experimental features in the code?

I am using Kotlin's experimental features, and I wonder if it will work well in the live version of the app? For example the @Parcel annotation in Kotlin.
1
vote
0 answers

"Undefined reference to" errors during native library linkage by "experimental" gradle plugin

I tried to create a simple JNI application with new build system based on "experimental" com.android.model.application (com.android.tools.build:gradle-experimental:0.9.2). ./gradle/wrapper/gradle-wrapper.properties: …
1
vote
0 answers

android-maven-gradle-plugin + gradle-experimental

In my android library project I use com.github.dcendents:android-maven-gradle-plugin:1.5 to install my library to my local maven repo, and this has always worked fine. Now, for various NDK related reasons I have had to switch to the…
1
vote
1 answer

How do I limit platforms that I build for?

I've tried doing abiFilters ["armeabi-v7a"] instead of abiFilters.add("armeabi-v7a") but that results in linking error and message: Execution failed for task ':linkMyModuleArm64-v8aDebugSharedLibrary' Basing on this message I suspect that project…
UfoXp
  • 619
  • 5
  • 13
1
vote
1 answer

Pass cppFlag values to the C++ code using Android Studio and Experimental Gradle Plugin

void DoSomething() { ... m_a = new SomeContext(m_data); ... } Using Android Studio's Experimental Gradle Plugin, how do I pass the value of SOMETHING as "somevalue"? I think I should be using…
user1128265
  • 2,891
  • 10
  • 29
  • 34
1
vote
1 answer

Android Studio: gradle's experimental plugin and ProGuard's files

I use gradle's experimental plugin in order to add some NDK code. before usage of NDK support my buildTypes section was next buildTypes { release { minifyEnabled true proguardFiles…
Mike Herasimov
  • 1,319
  • 3
  • 14
  • 31
1
vote
3 answers

Firebase Notification does not work with experimental gradle

Fire Base messaging stops working with experimental gradle. How to recreate the issue Create a project to support firebase notifications follow https://firebase.google.com/docs/notifications/android/console-audience Build and run. Works wonderfully…
1
vote
1 answer

Why is my .so not being packed in the apk?

Currently working on an NDK project and trying to figure out why my .so file is not being packed into my .apk. The .so files are being created though, and are put in app/src/main/libs/$arch. When I debug my app, this is the error I get: 07-19…
iHowell
  • 2,263
  • 1
  • 25
  • 49
1
vote
1 answer

Creating a static c lib for android

I have lib's source codes, I want to create static libs for android. How can I do this? Is there a way to do this with experimental gradle?. Also I want to build for different archs (arm7,x86 etc)
Vardan95
  • 602
  • 1
  • 7
  • 15
1
vote
0 answers

Gradle Experimental & Vector Drawable Support Library

I'm currently using Gradle Experimental 0.2.1, however I cannot use a more recent version. I don't know if it's related but I need to use the new Vectore Support. I tried adding vectorDrawables.useSupportLibrary = true to defaultConfig.with block…