gradle-experimental

In Android Studio 2.1.3 is experimental gradle not working?

北城以北 提交于 2020-02-03 08:24:46
问题 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 dependencies: buildscript { repositories { jcenter() } dependencies { classpath 'com.google.gms:google-services:3.0.0' classpath 'com.android.tools.build:gradle-experimental:0.7.2' classpath 'com.android.tools.build:gradle:2.1.3' } } And now after upgrade

gradle experimental include file directories via srcDir srcFile directive

戏子无情 提交于 2020-01-14 10:39:44
问题 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 level? Does it they include all cpp/c/cc/cxx files? for example this command: android.sources { main { jni { source { srcDir "../../../../some/path/src" } } } } Does it include all cpp files under src? all files under src? all cpp files recursively

Android Studio, NDK - Cannot Run Application

强颜欢笑 提交于 2020-01-07 04:44:13
问题 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 error: :app:compileDebugSources :app:transformClassesAndResourcesWithExtractJarsForDebug UP-TO-DATE :app:transformClassesWithDexForDebug UP-TO-DATE :app:processDebugJavaRes UP-TO-DATE :app:transformResourcesWithMergeJavaResForDebug UP-TO-DATE :app:validateDebugSigning :app:packageDebug FAILED FAILURE: Build failed

gradle-experimental:0.1.0 buildConfigField

本小妞迷上赌 提交于 2020-01-02 05:41:08
问题 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 } gives: Error:Attempt to read a write only view of model of type 'java.lang.Object' given to rule 'model.android.productFlavors' 回答1: With the buildType you can use a syntax like this: android.buildTypes { debug { buildConfigFields.with { create() { type = "String" name =

Building native openCV with NDK on android studio

旧时模样 提交于 2019-12-24 16:28:03
问题 I am making a C++ project which uses openCV and I wish to build it on android studio using android NDK support. On doing so I found out that only the experimental version of gradle supports NDK. I am currently using version 0.2.1 of gradle. I imported opencv as a module and copied the libraries to jniLibs folder under src/main/ I tried to compile it but I got certain errors like undefined reference to some functions in parallel.cpp of libopencv_core.a . They were resolved on importing the

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

邮差的信 提交于 2019-12-23 12:38:43
问题 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...? 回答1: Using the experimental plugin the build log is in the gradle log file. On my Mac, that is in ~/Library/Logs/Android1.3/idea.log You can run gradle with --debug or --info options for more verbose output. Running from the command line also produces more verbose output than in the IDE. There

Experimental features in Android extension is good for Production release

可紊 提交于 2019-12-20 01:41:54
问题 I'm using the @Parcelize feature in android development using Kotlin language. To use them I have done the below modifications in build.gradle file. apply plugin: 'kotlin-android-extensions' then androidExtensions { experimental = true } I'm successful in using the above feature. But is it recommended to use them for production release or only for development purpose alone? 回答1: This isn't just an Android-thing though, it's Kotlin in general. Kotlin has quite a few experimental features, such

How to build an Android Gradle based app with NDK only for the ARM target?

浪尽此生 提交于 2019-12-17 19:28:53
问题 I have a .so file from vendor which only support "arm". Currently it works perfectly fine for my Android application. Somehow I want to separate the implementation using Android Studio module, so I can export the module as Jar following this tutorial https://www.youtube.com/watch?v=1i4I-Nph-Cw. When I export the JAR, the build process returns an error /Users/zoom/android-ndk-r9d/toolchains/mipsel-linux-android-4.8/prebuilt/darwin-x86_64/bin/../lib/gcc/mipsel-linux-android/4.8/../../../..

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

ⅰ亾dé卋堺 提交于 2019-12-13 19:03:50
问题 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 sync Learn about configuring HTTP proxies in Gradle</a> I didn't find this issue with the projects not using Experimental Plugin (com.android.tools.build:gradle-experimental:0.4.0') as used by all the Native samples from the android git hub. my Project

Gradle experimental android library module dependency not executed

元气小坏坏 提交于 2019-12-12 17:44:38
问题 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 then used as a dependency for an app. The dependency is added like this: dependencies { compile project(path: ':library-module') } When i run the app with android studio it fails because the methods of the library are not found. I checked it in the