gradle-experimental

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

不想你离开。 提交于 2019-12-12 03:55:19
问题 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 { applicationId = "com.company.application" minSdkVersion.apiLevel = 21 targetSdkVersion.apiLevel = 21 } } android.buildTypes { release { minifyEnabled = false proguardFiles.add(file('proguard-rules.pro')) } } android.ndk { moduleName = "moduleName" } } dependencies { compile project('

Android native dependencies

喜你入骨 提交于 2019-12-11 03:05:24
问题 Supposedly we can now define dependencies on native-only libraries, but I'm having an issue adding multiple dependencies. apply plugin: 'com.android.model.library' model { android { compileSdkVersion 23 buildToolsVersion "23.0.2" defaultConfig { minSdkVersion.apiLevel 11 targetSdkVersion.apiLevel 22 versionCode = 1 versionName = "1.0" } sources { //noinspection GroovyAssignabilityCheck main { jni { dependencies { project ":libraw" project ":libjpeg" } } } } ndk { moduleName "rawprocessor"

Migrate Native Module from Gradle Experimental Plugin to Stable Gradle

僤鯓⒐⒋嵵緔 提交于 2019-12-10 12:27:01
问题 I have an Android Library project which has a part in C/C++ via Android NDK. The project started half of a year ago so we chose to use Experimental Plugin because of better NDK support. I'm using gradle-experimental:0.8.2 right now. I have a com.android.model.native module and i would like to migrate it to gradle:2.2.0 . The only option i see in Gradle Android Plugin DSL is: AppExtension: android extension for com.android.application projects. LibraryExtension: android extension for com

How to access versionCode from task in Gradle Experimental Plugin

爷,独闯天下 提交于 2019-12-07 18:38:43
问题 I would like to access versionCode and versionName in defaultConfig from a gradle task. I am using the experimental gradle plugin. I tried model.android.defaultConfig.versionCode but it doesn't recognise android... apply plugin: 'com.android.model.application' apply from: "../config.gradle" apply from: "../gitversion.gradle" def config = ext.configuration model { android { compileSdkVersion = config.compileSdkVersion buildToolsVersion = config.buildToolsVersion defaultConfig { applicationId =

Error:No such property: manifestPlaceholders for class: com.android.build.gradle.managed.ProductFlavor

时光怂恿深爱的人放手 提交于 2019-12-07 10:12:29
问题 I use 'gradle-experimental:0.4.0' and I want to use onesignal sdk for my project. when I try to build the project with the code which have been mentioned in the example here I get this error: Error:No such property: manifestPlaceholders for class: com.android.build.gradle.managed.ProductFlavor. Code in Sample android { defaultConfig { manifestPlaceholders = [manifestApplicationId: "${applicationId}", onesignal_app_id: "bbbbbb-324f-34fd-bed1-df8f05be55ba", onesignal_google_project_number:

How do you set APP_PLATFORM in Gradle NDK plug-in in Android Studio?

末鹿安然 提交于 2019-12-07 09:59:34
问题 I'm building an app with an NDK library using Android Studio 1.5.1 and the Gradle experimental plugin 0.4.0. Even though the Gradle config is set as such (with minSdkVersion.apiLevel = 18 ), it seems like the NDK library is still compiled for android-21 : compileOptions.with { sourceCompatibility=JavaVersion.VERSION_1_7 targetCompatibility=JavaVersion.VERSION_1_7 } android { compileSdkVersion = 23 buildToolsVersion = "23.0.2" defaultConfig.with { applicationId = "net.pol_online.hyper"

How do you set APP_PLATFORM in Gradle NDK plug-in in Android Studio?

房东的猫 提交于 2019-12-05 15:51:01
I'm building an app with an NDK library using Android Studio 1.5.1 and the Gradle experimental plugin 0.4.0 . Even though the Gradle config is set as such (with minSdkVersion.apiLevel = 18 ), it seems like the NDK library is still compiled for android-21 : compileOptions.with { sourceCompatibility=JavaVersion.VERSION_1_7 targetCompatibility=JavaVersion.VERSION_1_7 } android { compileSdkVersion = 23 buildToolsVersion = "23.0.2" defaultConfig.with { applicationId = "net.pol_online.hyper" minSdkVersion.apiLevel = 18 // Android 4.3 Jelly Bean targetSdkVersion.apiLevel = 23 // Android 6.0

Error:No such property: manifestPlaceholders for class: com.android.build.gradle.managed.ProductFlavor

血红的双手。 提交于 2019-12-05 13:47:13
I use 'gradle-experimental:0.4.0' and I want to use onesignal sdk for my project. when I try to build the project with the code which have been mentioned in the example here I get this error: Error:No such property: manifestPlaceholders for class: com.android.build.gradle.managed.ProductFlavor. Code in Sample android { defaultConfig { manifestPlaceholders = [manifestApplicationId: "${applicationId}", onesignal_app_id: "bbbbbb-324f-34fd-bed1-df8f05be55ba", onesignal_google_project_number: "11111111"] } } Code in my project model { android { compileSdkVersion = 23 buildToolsVersion = "23.0.2"

gradle-experimental:0.1.0 buildConfigField

烂漫一生 提交于 2019-12-05 12:24:30
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' With the buildType you can use a syntax like this: android.buildTypes { debug { buildConfigFields.with { create() { type = "String" name = "FIELD_META" value = "PROVIDER_META" } } } } I am not sure if you can use the same syntax with flavors. 来源: https

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

十年热恋 提交于 2019-12-05 02:34:40
问题 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,