android-build

How to resolve $TERM not set on gradlew ./assembleRelease on CIrcleCI?

跟風遠走 提交于 2019-12-11 03:14:33
问题 I'm building a workflow on circleci 2.0 and so far jobs are running until it gets to android job. At the build step ./gradlew assembleRelease it fails stating that an ENV VAR is not set: Unzipping /home/circleci/.gradle/wrapper/dists/gradle-2.14.1-all/8bnwg5hd3w55iofp58khbp6yv/gradle-2.14.1-all.zip to /home/circleci/.gradle/wrapper/dists/gradle-2.14.1-all/8bnwg5hd3w55iofp58khbp6yv Set executable permissions for: /home/circleci/.gradle/wrapper/dists/gradle-2.14.1-all/8bnwg5hd3w55iofp58khbp6yv

Dynamically generate package name for multi-flavors configuration

假如想象 提交于 2019-12-11 00:31:16
问题 I have Gradle Android project that will be used for several customers. Also it will have free and paid version. I realized that it can be achieved by using flavorDimensions. But the problem is that I want to have a method to generate package name depending on selected flavors. flavorDimensions 'branding', 'version' productFlavors { free { flavorDimension 'version' } paid{ flavorDimension 'version' } customer1 { flavorDimension 'branding' } customer2 { flavorDimension 'branding' } } //

Gradle build error: SAXParseException

耗尽温柔 提交于 2019-12-10 20:53:04
问题 on building the app, i get following error: Error:org.xml.sax.SAXParseException; lineNumber: 0; columnNumber: 0; cvc-pattern-valid: Value 'build-tools;23.0.0 rc3' is not facet-valid with respect to pattern '[a-zA-Z0-9_\-;.]+' for type 'segmentListType'. build.gradle of module level gradle: apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.2" defaultConfig { applicationId "ms.demo.map" minSdkVersion 9 targetSdkVersion 23 versionCode 1 versionName "1

Building System App With Prebuilt .so Library

和自甴很熟 提交于 2019-12-10 16:04:58
问题 I've been stuck here for a week trying to build a 3rd party .so library along with my app into custom Android system. I followed http://www.maxters.net/2012/05/adding-prebuilt-shared-library-to-android-build-system/ and successfully add the .so lib as prebuilt shared library to Android Build System. Now I can see the .so lib at ../out/target/product/crespo4g/obj/lib/. But the libraries in this directory are not going to be migrated to device when flashing. And my .so lib is not appeared at

Warning : Deactivation of this APK will result in your app being available for new installs on fewer types of devices

↘锁芯ラ 提交于 2019-12-10 14:57:04
问题 I have one version of app uploaded on Playstore with different architecture and now I want to upload my app with new version but getting. Error: You can't rollout this release because it doesn't allow any existing users to upgrade to the newly added APKs. And also getting some warning error like Device support removed Warning Deactivation of this APK will result in your app being available for new installs on fewer types of devices. Tip If this is an unintended change, then retain this APK in

Android Console Error: “requires .class compatibility set to 5.0. Please fix project properties”

▼魔方 西西 提交于 2019-12-10 14:49:30
问题 Just did a fresh Install of Eclipse 3.5 and the Android Platform (SDK's and ADT). I've done this a few times on different machines and so I'm pretty sure I've got everything configured properly. Tried importing an Android project and received the following error in the console window: "Android requires .class compatibility set to 5.0. Please fix project properties." I've never seen this error before. The only thing I can think of is that its talking about the build target? I've got the

Android NDK Integration: Error:Unable to load class BuildType$Impl

≯℡__Kan透↙ 提交于 2019-12-10 14:12:47
问题 I am trying to integrate NDK into my project. I am using Gradle wrapper 2.9 and classpath: gradle-experimental:0.6.0-alpha3 . Project level gradle: buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle-experimental:0.6.0-alpha6' } } allprojects { repositories { jcenter() } } task clean(type: Delete) { delete rootProject.buildDir } App level gradle: apply plugin: 'com.android.model.application' model { android { compileSdkVersion = 23

DexArchiveMergerException with Android Studio 3.0

感情迁移 提交于 2019-12-10 13:53:46
问题 Having compilation error with the following build.gradle details : Top-Level build.gradle buildscript { repositories { google() jcenter() mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:3.0.0' } } allprojects { repositories { google() jcenter() mavenCentral() maven { url 'https://maven.google.com' } } } task clean(type: Delete) { delete rootProject.buildDir } App-Level build.gradle apply plugin: 'com.android.application' android { compileSdkVersion 27 defaultConfig {

Android build tools 1.1.0, unit test folder?

落花浮王杯 提交于 2019-12-10 03:46:10
问题 I recently installed the latest tools from google to my android project: buildscript { repositories { jcenter() mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:1.1.0' } } allprojects { repositories { jcenter() } } apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion "21.1.2" compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } defaultConfig { applicationId "com.xxx"

The output jar is empty. Did you specify the proper '-keep' options?

我的梦境 提交于 2019-12-09 12:33:32
问题 I am trying to build a release APK file from ant and this is what i m getting in my console D:\AndroidSDK\android-sdk_r18-windows\android-sdk-windows\tools\ant\build.xml:595: The following error occurred while executing this line:D:\AndroidSDK\android-sdk_r18windows\android-sdk-windows\tools\ant\build.xml:864: The output jar is empty. Did you specify the proper '-keep' options? What is this error and how can i resolve it..M using the latest SDK(API-17) with Revision 21.1 All java_home,Ant