gradle-experimental

Add productFlavor to experimental Android gradle plugin library

末鹿安然 提交于 2019-12-03 17:28:44
问题 I've got a project that uses the experimental gradle plugin, i.e. 0.2.0 . When I've got no productFlavor , I can perfectly integrate a library module in Android Studio and everything works perfectly. But when the library has a productFlavor , I main project doesn't find the library classes. This fix does not appear to work with the experimental gradle plugin. Does anyone have any idea how make flavors work with the new plugin? Library: android.productFlavor { create ('flavor') { ... } }

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

时光毁灭记忆、已成空白 提交于 2019-12-03 17:17:15
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 get the following exception (it is shortened. The complete exception was too long): app\src\main\jniLibs\armeabi\libopencv_core.a(matrix.cpp.o):matrix.cpp:function std::vector<unsigned char, std::allocator<unsigned char> >::resize(unsigned int, unsigned char): error: undefined reference to 'std::__throw_length_error(char const*)' app\src\main\jniLibs

Add productFlavor to experimental Android gradle plugin library

元气小坏坏 提交于 2019-12-03 05:40:58
I've got a project that uses the experimental gradle plugin, i.e. 0.2.0 . When I've got no productFlavor , I can perfectly integrate a library module in Android Studio and everything works perfectly. But when the library has a productFlavor , I main project doesn't find the library classes. This fix does not appear to work with the experimental gradle plugin. Does anyone have any idea how make flavors work with the new plugin? Library: android.productFlavor { create ('flavor') { ... } } Project: ... dependencies { compile project(':mylibrary') } MaTriXy This might help? Library Publication By

How can I codesign a 64-bit Android APK using the Gradle Experimental Plugin?

人盡茶涼 提交于 2019-12-02 15:39:44
问题 I am developing a Android apps using Open Frameworks, a C++ framework which supports Android. Its Android projects use the Gradle experimental plugin to allow C++. I have been able to get these to build unsigned APK's that run just fine (using Android Studio 2.3.2, 3.0, 3.5 or 3.5.1, Experimental Gradle Plugin 0.9.3, and Gradle distribution 3.3.0). But now I need to codesign them and include 64-bit versions to post them to the Android Store. The Gradle Experimental Plugin has always required

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

蹲街弑〆低调 提交于 2019-12-01 13:15:47
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: distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip ./build.gradle: buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle-experimental:0.9.2' } } allprojects { repositories { jcenter() } }

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

心已入冬 提交于 2019-12-01 12:21:56
问题 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: distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip ./build.gradle: buildscript { repositories { jcenter() } dependencies {

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

房东的猫 提交于 2019-12-01 08:49:01
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 Experimental Guide I managed to easily adapt my various gradle scripts. However, Gradle Sync fails with the following error : Error:No such property: android for class: com.android.build.gradle.managed.ProductFlavor [Update 1 -> see below, error updated] When I attempt to Make the project, I obtain a little more detailed error : Error:(17, 1) A problem

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

99封情书 提交于 2019-12-01 07:05:04
问题 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 Experimental Guide I managed to easily adapt my various gradle scripts. However, Gradle Sync fails with the following error : Error:No such property: android for class: com.android.build.gradle.managed.ProductFlavor [Update 1 -> see below, error updated]

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

那年仲夏 提交于 2019-11-28 10:35:07
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/../../../../mipsel-linux-android/bin/ld: skipping incompatible src/main/jniLibs/armeabi/libremote_client.so when