android-gradle-3.0

Android Studio 3.0 Unsigned Apk Not Installing

那年仲夏 提交于 2019-12-03 23:38:15
After upgrading to android studio 3.0 the debug apk is saying App not istalled. The package appears to be corrupted 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 - Fist Click On Build Icon on android studio after that click Build APK(s) then Generate APK the copy Apk. It is working perfact. I needed to create a signed APK for it to install correctly. I have also faced the same problem after

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

好久不见. 提交于 2019-12-03 23:27:07
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: Some URL B}]"§ as seen in the image below I put the same String on Firebase remote config console and

Variant debug has no output with type INSTANT_RUN_MERGED_MANIFESTS

寵の児 提交于 2019-12-03 13:56:12
问题 What I want to do & the problem I updated my Android Studio and Android Gradle Plugin to 3.0.0 and my Gradle Wrapper to 4.2.1 and want to build & deploy my Android Gradle project on a device via IDE. Building succeeds When I try to deploy my :app module to a connected device, I receive the error: Error:A problem occurred configuring project ':integration-test'. Variant 'debug' has no output with type 'INSTANT_RUN_MERGED_MANIFESTS' Details about the project (simplified) The project consists of

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

£可爱£侵袭症+ 提交于 2019-12-03 04:40:49
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.java:2892) at android.app.ActivityThread.-wrap11(Unknown Source:0) at android.app.ActivityThread$H

Android gradle 3.0.0 - Unexpected end of ZLIB input stream

痞子三分冷 提交于 2019-12-01 07:06:28
问题 After updating android studio to 3.0 and switching to gradle plugin 3.0.0 I am getting this error: Gradle '...' project refresh failed Error:Unexpected end of ZLIB input stream The problems appears both in all my old projects but brand new ones as well. Any Idea on what is causing this? Gradle 2.3.3 works fine my project build.gradle : // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { ext.kotlin_version = '1.1.51' repositories {

Android Gradle Implementation vs CompileOnly Performance

亡梦爱人 提交于 2019-11-28 08:09:06
The docs mention that implementation provides significant build time improvements over compile / api . What about compileOnly ? My use case is a multi-module (sorry I don't like Gradle's multi-project terminology) project, where I have an Android app, and multiple libraries that the app depends on ( implementation ). Some of the libraries also depend on one another. Should I use implementation or compileOnly when declaring dependencies in the library modules? My app module will be using implementation to depend on those artifacts, so I don't need them to be transitive through the library

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

陌路散爱 提交于 2019-11-27 21:47:13
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. [DuplicatePlatformClasses] The dependencies are dependencies { compile fileTree(include: ['*.jar'], dir: 'libs')

Can't find lib via transitive use of sub module

丶灬走出姿态 提交于 2019-11-27 07:18:36
问题 Android Studio 3.4.2 I has main project (app) that use module mytransport like this: app/build.gradle dependencies { annotationProcessor "org.androidannotations:androidannotations:$AAVersion" implementation fileTree(dir: 'libs', include: ['*.jar']) implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation 'com.android.support:appcompat-v7:28.0.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' implementation 'com.android.support.constraint

Android Gradle Implementation vs CompileOnly Performance

戏子无情 提交于 2019-11-27 02:05:07
问题 The docs mention that implementation provides significant build time improvements over compile / api . What about compileOnly ? My use case is a multi-module (sorry I don't like Gradle's multi-project terminology) project, where I have an Android app, and multiple libraries that the app depends on ( implementation ). Some of the libraries also depend on one another. Should I use implementation or compileOnly when declaring dependencies in the library modules? My app module will be using

java.lang.NoSuchMethodError: No static method getFont(Landroid/content/Context;ILandroid/util/TypedValue;ILandroid/widget/TextView;)

半世苍凉 提交于 2019-11-26 15:21:26
After I updated my Android Studio to 3.0 I am getting No static method getFont() error. The project on which I am working is on github, https://github.com/ik024/GithubBrowser // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() maven { url "https://oss.sonatype.org/content/repositories/snapshots" } } dependencies { classpath 'com.android.tools.build:gradle:3.0.0' classpath 'com.jakewharton:butterknife-gradle-plugin:9.0.0-SNAPSHOT' } } allprojects { repositories { jcenter() maven { url 'https://maven.google