android-build

How to detect when dependency library version updates exist in build.gradle in AndroidStudio project

丶灬走出姿态 提交于 2019-12-08 12:59:56
问题 I've an android project with two modules (typical front-end app and backend). I have three build.gradle files, one in each module and one in the root. The way I've structured my dependencies is by extracting all the versions into separate variables in the root level build.gradle as such ext { // SDK and tools MIN_SDK_VERSION = 19 TARGET_SDK_VERSION = 23 COMPILE_SDK_VERSION = 23 BUILD_TOOLS_VERSION = '24' // app dependencies GOOGLE_API_CLIENT_VERSION = '1.19.0' GOOGLE_PLAY_SERVICES_VERSION =

How to build .apk file on server side

感情迁移 提交于 2019-12-08 09:52:51
问题 My simple version of the question is ,how do i build .apk file on the server side ,assuming my server is in PHP language. Long version Step 1: I am taking data from HTML form Step 2: I am generating the RSS feed for it using PHP classes Step 3: I will modify the java file in the server side to update the URL of the RSS feed i have generated in step 2 Step 4: Now i have all the files to build the Android app on the server side ,except that i have no info on how to build it actually . ps: I

error while building android 4.3 master

試著忘記壹切 提交于 2019-12-08 00:28:01
问题 i need to build android 4.3 master. following instruction from here http://source.android.com/source/building.html . It's going well up to sync-ing source code from repo. When we are trying to build using "make -j4", this is occurring. 1 error make: *** [out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes-full-debug.jar] Error 41 make: *** Waiting for unfinished jobs.... Here is full log - ============================================ PLATFORM_VERSION_CODENAME=REL PLATFORM_VERSION

Android gradle build failed with Nullpointer Exception

点点圈 提交于 2019-12-07 10:54:32
I am trying to build a Android project in CentOS machine as part of Continuous Integration. Dev team builds in Windows and it works fine in their machine. In CentOS machine, I am seeing below error. Any idea what is going wrong. Below is the stacktrace. I have set proxy info in gradle.properties. I have setup Android build tools and platform tools. * What went wrong: A problem occurred configuring project ':app'. > java.lang.NullPointerException (no error message) * Try: Run with --info or --debug option to get more log output. * Exception is: org.gradle.api.ProjectConfigurationException: A

Uninstalling selected parts of Android SDK on the command line

此生再无相见时 提交于 2019-12-07 04:46:46
问题 This is related to "Uninstall old Android SDK versions", except I'd want to do it on a headless Linux CI server (short on disk space). Does the android command line tool provide options for removing older parts of the SDK? With a quick look, the only things it can delete are AVDs. Did I overlook something? Alternatively, I guess I could just manually delete stuff from under SDK_HOME. But what things are safe to delete? Other candidates than these? I only need to support API level 14 and up,

How can Android project compile when imported class is missing in SDK?

删除回忆录丶 提交于 2019-12-06 20:27:35
问题 OK, perhaps it is very simple, but I just can not figure it out right now. I have imported google sample project Card Reader in Android Studio 1.5.1, it compiles at compileSdkVerison 23, it works on my Mobile. Then I walked through the SDK while came to source code to android.nfc.tech.BasicTagTechnology , I found TransceiveResult inside android.nfc.tech.BasicTagTechnology#transceive couldn't not be resolved then I found the class TransceiveResult is missing in my D:\Android\sdk\platforms

Android build error com.google.firebase:firebase-core:17.0.0

无人久伴 提交于 2019-12-06 18:07:49
问题 I have to problem when build. i add build firebase core 16.0.0, but when build, this is build firebase core 17.0.0. why it build 17.0.0.I check android https://firebase.google.com/docs/android/setup#available_libraries, now version 16.0.0, i have to remove build project, but this is not success. Can you help me? Thanks. when i increase version build classpath 'com.google.gms:google-services:4.0.1' // google-services plugin and dependencies { implementation fileTree(include: ['*.jar'], dir:

Android Gradle: rename/disable default build type

一笑奈何 提交于 2019-12-06 17:12:30
问题 Can the pre-defined build-types somehow being renamed? We use some custom build types that represent our internal staging setup (DEV/TEST/LIVE) and do not need the build in buildTypes (release/debug). Can these somehow being renamed or disabled when calling assemble ? 回答1: import com.android.builder.core.BuilderConstants android.variantFilter { variant -> def build = variant.buildType.name if (build == BuilderConstants.DEBUG || build == BuilderConstants.RELEASE) { variant.setIgnore(true) } }

Immutables-library generates the same immutable class twice

谁说胖子不能爱 提交于 2019-12-06 13:22:13
When using the immutables.io annotation processor in a multi-module android app, the build fails, when a package-info.java file is used. I've managed to build a minimal test-project on GitHub to reproduce the issue: ImmutablesPackageInfoIssue The project consists of 2 modules: app: android application: @Value.Immutable is used in AndroidIm.java lib: java module: @Value.Immutable is used in JavaIm.java So basically, using immutables.io in both modules works fine. But when we add a package-info.java file (to the com.example package in the app module), the compilation fails with this error: com

Android Menu icons don't appear in the release build but display in the debug build

。_饼干妹妹 提交于 2019-12-06 12:29:37
I am facing one of the most bizarre issues in rcent times. I am using AppCompatActivity with android support v7. When I am running the app in debug mode I can see the menus with icons, after generating signed apk and installing, the icons vanishes from menu. 1) Release Build screenshot 2) Debug build screenshot Here is my menu code <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" tools:context=".TerminalActivity"> <item android:id="@+id/action_streamConnect" app:showAsAction=