android-build

Android Command line tools sdkmanager always shows: Warning: Could not create settings

这一生的挚爱 提交于 2020-03-17 09:57:09
问题 I use the new Command line tools of android because the old sdk-tools repository of android isn't available anymore. So I changed my gitlab-ci to load the commandlintools. But when I try to run it I get the following error: Warning: Could not create settings java.lang.IllegalArgumentException at com.android.sdklib.tool.sdkmanager.SdkManagerCliSettings.<init>(SdkManagerCliSettings.java:428) at com.android.sdklib.tool.sdkmanager.SdkManagerCliSettings.createSettings(SdkManagerCliSettings.java

Android Gradle Build Slow

独自空忆成欢 提交于 2020-02-03 10:08:54
问题 I am trying to figure out why our Gradle build is so slow. Currently each time you hit build with no changes the build time is around 45 seconds. This is a single module project. I have turned on profiling and most of the time is spent on :app:dexDebug. We are build using Gradle 2.8 and my dex options are as follows: dexOptions { preDexLibraries = false incremental true javaMaxHeapSize "4g" } From the profile report: :app 43.957s (total) :app:dexDebug 28.727s Is there a way to speed this up?

Android Gradle Build Slow

老子叫甜甜 提交于 2020-02-03 10:07:09
问题 I am trying to figure out why our Gradle build is so slow. Currently each time you hit build with no changes the build time is around 45 seconds. This is a single module project. I have turned on profiling and most of the time is spent on :app:dexDebug. We are build using Gradle 2.8 and my dex options are as follows: dexOptions { preDexLibraries = false incremental true javaMaxHeapSize "4g" } From the profile report: :app 43.957s (total) :app:dexDebug 28.727s Is there a way to speed this up?

Build Error: Execution failed for task ':app:transformNativeLibsWithStripDebugSymbolForDebug

假装没事ソ 提交于 2020-01-24 17:51:07
问题 I have a gradle build error in my android application. I tried to update NDK and all modules, but it still appears. Does anybody know what can cause it and how to fix it? Below is my gradle file: Execution failed for task ':app:transformNativeLibsWithStripDebugSymbolForDebug'. > A problem occurred starting process 'command 'D:\Android\SDK\ndk-bundle\toolchains\mips64el-linux-android-4.9\prebuilt\windows-x86_64\bin\mips64el-linux-android-strip'' gradle: apply plugin: 'com.android.application'

Android : Could not find method com.google.analytics.tracking.android.EasyTracker.getTracker

一曲冷凌霜 提交于 2020-01-19 15:15:10
问题 I have an app that makes use of the Google Analytics library. I recently moved the code into a new workspace and the app has stopped working. The code builds OK but when it runs it halts with the following error. 06-12 23:11:14.117: I/dalvikvm(31080): Could not find method com.google.analytics.tracking.android.EasyTracker.getTracker, referenced from method com.apps4care.v2conf.utils.analytics.raiseEvent 06-12 23:11:14.117: W/dalvikvm(31080): VFY: unable to resolve static method 7179: Lcom

How to obtain Firmware version of Android programmatically?

拥有回忆 提交于 2020-01-15 05:05:31
问题 The following screenshot of a generic tablet shows an example of Firmware version: We have tried pretty much everything of Android Build, none of them is the firmware version. 回答1: Firmware is the operating software available on an Android device, and it is available in different versions designed by different manufacturers. Basically it's the device-specific part of the software. For example, you may have Android 4.2.2 running on your phone, but have a firmware number that looks completely

Getting Transform Exception while building the project [duplicate]

时光怂恿深爱的人放手 提交于 2020-01-11 09:36:11
问题 This question already has answers here : com.android.build.transform.api.TransformException (24 answers) Closed 4 years ago . I am getting the following error when I try to run my app: Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.transform.api.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/java-7-openjdk-amd64/bin/java'' finished with non-zero exit

How to build the Android sample projects using Ant? build.xml does not exist

独自空忆成欢 提交于 2020-01-09 08:27:09
问题 I believe I've followed the instructions in the Android SDK, and I'm now trying to build the sample LunarLander (random one picked) $ cd samples/android-11/LunarLander $ ant debug Buildfile: build.xml does not exist! Build failed I believe all PATHs are setup correctly. I've done this before in an older Android SDK release and I know I didn't encounter this error, so I'm pretty confused as to what's wrong. Oh, one more piece of info -- I have only installed the 3.0 platform package, so I'm

Copy a shell script to android out folder and execute it during boot

痴心易碎 提交于 2020-01-07 05:08:27
问题 I have a shell script which I need to copy to anywhere in out folder during Android build process so that it appears somewhere in Android RootFS. Now, once it is copied after Android build process and becomes part of Android RootFS, I want to execute the shell script during boot time. How can I do it? 回答1: Well, I created a root folder in AOSP or anywhere, then created Android.mk and copied the script to be copied to out folder. Added below comments in Android.mk $(shell cp -rf $(LOCAL_PATH)

Ionic Android Build - com.google.android.gms:play-services-measurement-base Error

吃可爱长大的小学妹 提交于 2020-01-06 08:45:08
问题 My error: :app:preReleaseBuild FAILED FAILURE: Build failed with an exception. * What went wrong: The library com.google.android.gms:play-services-measurement-base is being requested by various other libraries at [[16.5.0,16.5.0], [16.4.0,16.4.0]], but resolves to 16.5.0. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies. I reinstalled the npm and cordova plugins for Firebase, I deleted the node-modules, the plugins and everything but the issue is still