android-gradle-3.0

Android: Firebase remoteConfig getString() method is removing quotes from string inside default.xml

邮差的信 提交于 2019-12-21 07:28:30
问题 i have the following remote config_default.xml file <?xml version="1.0" encoding="utf-8"?> <defaultsMap> <entry> <key>LOCAL_JSON</key> <value>[{"title":"TitleA","path":"pathA","image_url":" Some URL A"},{"title":"TitleB","path":"pathB","image_url":" Some URL B"}]</value> </entry> </defaultsMap> Now when i try to access it using Firebase remote config getString() method, i always get the string without quotes "[{title:TitleA,path:pathA,image_url: Some URL A},{title:TitleB,path:pathB,image_url:

commons-logging defines classes that conflict with classes now provided by Android after Android Studio Update

旧巷老猫 提交于 2019-12-17 10:56:11
问题 I have updated Android Studio to version 3 and now seems unable to compile my project previously compiled without errors. The error message is the follow Error:Error: commons-logging defines classes that conflict with classes now provided by Android. Solutions include finding newer versions or alternative libraries that don't have the same problem (for example, for httpclient use HttpUrlConnection or okhttp instead), or repackaging the library using something like jarjar.

Android - Xwalk crash after Oreo migration

强颜欢笑 提交于 2019-12-13 20:27:00
问题 I want to make some changes to an application targeting Android SDK 22 (5.1) . I loaded the project in Android Studio 3 , got the Gradle upgrade message. Of course, doing that makes the whole thing explode as the way the new Gradle handles dependencies has become very nitpicky. I decided to go all out and just do the whole migration. Would have to do it at some point anyway. The application uses an XWalkView (extended in a class), instead of the native Webview, as we want to have some WebGL

Jacoco 0.8.2 and Android Gradle plugin 3.2.0 test coverage

为君一笑 提交于 2019-12-11 18:18:34
问题 I just tracked down an issue I'm having with partial coverage reports due to Android Gradle plugin 3.2.0 Jacoco is only generating coverage reports for less than 10% of my project. If I revert back to 3.1.4, it behaves as expected. Is there any known issue with AGP 3.2.+ and JaCoCo test coverage? 回答1: In absence of Minimal, Complete, and Verifiable example that demonstrates steps to reproduce your difficulty, one can only guess. Simple search in bugtracker of Android Gradle Plugin by word

How can I list which dependencies count against the dex limit for an androidTest apk in AGP 3.0?

感情迁移 提交于 2019-12-11 01:13:19
问题 I upgraded to AGP 3.0, but then got a com.android.dex.DexIndexOverflowException for the androidTest apk. I didn't have this issue with gradle 2.3.3 . How can I get a dependency report for exactly which dependencies are being added only to an androidTestApk (aka dependencies which count against the 65k dex limit) I tried: ❯ ./gradlew app:dependencies --configuration androidTestApk androidTestApk - Apk dependencies for 'androidTest' sources (deprecated: use 'androidTestRuntimeOnly' instead). (n

Android NDK build

若如初见. 提交于 2019-12-06 11:46:06
问题 While trying to build my android ndk project getting following error. Android studio version 3.1.3 FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':app:ndkBuild'. Process 'command '/Users/bnaskar/Library/Android/sdk/ndk-bundle/ndk-build'' finished with non-zero exit value 2 Try: Run with --info or --debug option to get more log output. Run with --scan to get full insights. Exception is: org.gradle.api.tasks.TaskExecutionException: Execution failed for task

AAPT2 error: this error happened as soon as i updated my android studio to the latest version

风流意气都作罢 提交于 2019-12-05 18:51:09
I tried " multiDexEnabled true " as well as " android.enableAapt2=false " but the error continues to come.... There seems to be some build problem.... I can't figure out what it is org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:processDebugResources'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70) at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter

Android Studio 3.0 Unsigned Apk Not Installing

时光怂恿深爱的人放手 提交于 2019-12-05 12:06:00
问题 After upgrading to android studio 3.0 the debug apk is saying App not istalled. The package appears to be corrupted 回答1: Looks like we can not directly use the apk after running on the device from the build->output->apk folder. After upgrading to android studio 3.0 you need to go to Build -> Build Apk(s) then copy the apk from build -> output -> apk -> debug Like this - 回答2: Fist Click On Build Icon on android studio after that click Build APK(s) then Generate APK the copy Apk. It is working

java.lang.UnsupportedOperationException: Can't convert value at index 5 to color: type=0x5

久未见 提交于 2019-12-04 10:01:20
问题 My app is crashing after updating to Android Studio 3 RC1 ( Gradle 4, Android Gradle plugin 3 RC2). This is the error I am having: java.lang.RuntimeException: Unable to start activity ComponentInfo{*****}: android.view.InflateException: Binary XML file line #0: Binary XML file line #0: Error inflating class com.viewpagerindicator.CirclePageIndicator at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2817) at android.app.ActivityThread.handleLaunchActivity(ActivityThread

New error after update to gradle-tool to 3.1.0-beta3 or 3.2.0-alpha03

耗尽温柔 提交于 2019-12-04 04:30:00
Just a normal project with "prod" and "mock" flavors in app/build.gradle: sourceSets { main.java.srcDirs += "blabla bla" test.java.srcDirs += "blabla bla" androidTest.java.srcDirs += "blabla bla" prodDebug.java.srcDirs += "blabla bla" mockDebug.java.srcDirs += "blabla bla" prod.java.srcDirs += "blabla bla" testProd.java.srcDirs += "blabla bla" androidTestProd.java.srcDirs += "blabla bla" mock.java.srcDirs += "blabla bla" testMock.java.srcDirs += "blabla bla" androidTestMock.java.srcDirs += "blabla bla" } click "run" in Android Studio : something goes wrong: Error:org.gradle.api.GradleException