android-studio-3.0

What's mipmap-anydpi-v26 in res directory in Android Studio 3.0?

会有一股神秘感。 提交于 2019-11-28 23:43:48
问题 In Android Studio 3.0, once we create a project, a folder named mipmap-anydpi-v26 is automatically created in the res directory. What actually does it do? Why do we need it? How will we utilize it for development purposes? Also, there are two XML files automatically created in this folder after project setup. Why do these XML files reside in a mipmap folder? I thought we should keep all XML files in a drawable folder instead of mipmap. 回答1: Android Studio 3 creates an adaptive icon for your

android studio 3.1: build:gradle:3.1.0 - Absolute path are not supported when setting an output file name

ぃ、小莉子 提交于 2019-11-28 23:25:06
When I use Android Studio 3.0 and I use the next version of Android Gradle Plugin in project/build.gradle : classpath 'com.android.tools.build:gradle:3.0.1' And it's work fine. After I update to Android Studio 3.1 , as result I update Android Gradle Plugin : classpath 'com.android.tools.build:gradle:3.1.0' And now I get error in my app/build.gradle : def releaseFileName = "${rootProject.name}_${defaultConfig.versionName}.apk" outputFileName = new File(rootProject.projectDir.absolutePath + "/release", releaseFileName.toLowerCase()) Error: Absolute path are not supported when setting an output

What is the <module>/release/output.json generated by Android Studio

房东的猫 提交于 2019-11-28 18:34:00
I recently noticed a new file generated at <module>/release/output.json by Android Studio 3 Canary 1 each time I run Build -> Generate Signed APK... , which has contents that look like following. Can anyone confirm seeing this behavior as well? Or is it due to some local configuration on my laptop? And can anyone explain the purpose of this file? Is it safe to add to .gitignore ? [{ "outputType": { "type": "APK" }, "apkInfo": { "type": "MAIN", "splits": [], "versionCode": 32 }, "outputFile": { "path": "/path/to/the/generated/release/filename.apk" }, "properties": { "packageId": "com.example

RxJavaPlugins Error Didn't find class “com.google.devtools.build.android.desugar.runtime.ThrowableExtension”

旧街凉风 提交于 2019-11-28 18:15:36
After upgrading Android Studio 3.0 Beta 1 getting the following error. When I downgraded the error disappeared. Studio Build: Android Studio 3.0 Beta 1 Version of Gradle Plugin: 'com.android.tools.build:gradle:3.0.0-beta1' Version of Gradle:.0.0-beta1 Version of Java: 8 OS: MacOSX java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/devtools/build/android/desugar/runtime/ThrowableExtension; at io.reactivex.plugins.RxJavaPlugins.onError(RxJavaPlugins.java:364) at io.reactivex.android.schedulers.HandlerScheduler$ScheduledRunnable.run(HandlerScheduler.java:113) at android.os.Handler

Unable to resolve dependency Android Studio 3.0

时光怂恿深爱的人放手 提交于 2019-11-28 18:11:33
It's good to have a Updated Android Studio 3.0 . But I am facing a problem with Android Studio 3.0 , I just created a new project in Android Studio 3.0 . Then I got some error I solved these by changing dependencies to latest version and issues solved. But, when I added a dependency of facebook account-kit sdk com.facebook.android:account-kit-sdk:4.+ I am getting following errors-: Error:Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.facebook.android:account-kit-sdk:4.+. Open File Show Details build.gradle(app) apply plugin: 'com.android.application'

RegisterResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)

半腔热情 提交于 2019-11-28 16:07:53
Using new android studio with new 3.0.0 Gradle pluging. When building some warning happened: registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) From what I can tell, plugins added as classpath dependencies will give problems. I.e. Firebase had an issue with it. Spoon and Flutter as well. Doing this Google search reveals a lot of GitHub repos with an issue raised over the same thing, and all they have in common is the fact that it's a Gradle plugin. Fabric appears to be a cause as well, as mentioned by Mate * From what I can tell, the issue comes from a

References to other resources are not supported by build-time PNG generation

被刻印的时光 ゝ 提交于 2019-11-28 15:33:17
AndroidStudio 3.0 / Android Gradle plugin 3.0 <vector> <path android:fillColor="@color/image_button_disabled"/> </vector> I get this error: references to other resources are not supported by build-time PNG generation Will it be possible to resolve it or is it a deprecated solution? mwa91 In your app build.gradle add the following line: defaultConfig{ vectorDrawables.useSupportLibrary = true } See Android Developers: Vector Drawables Backward Compatibility Solution for details. you need to use the hex code directly not referring to a resource. <vector <path android:fillColor="#FFF"/></vector>

Digital Asset Link verified by Android Studio, but not pass in Google Play Console

筅森魡賤 提交于 2019-11-28 14:23:55
I try to publish my Android instant app to Google Play; I link the app, which is named helloinstantapp.instantapp.examples.chrisyttang.org to the domain https://csytang.github.io . It has been verified by Android Studio as you can see in the following image; However, when I try to publish my app into Google Play with Google Play Console, I get the error that "the site csytang.github.io has not been linked through the DAL protocol to your app." Why this happen? Did you by any chance enable Google Play App Signing ? If yes, then you need to use the fingerprint provided by the Play Console,

Android Studio 3.0 RC2 - “Default Activity not found” for multi module project

本小妞迷上赌 提交于 2019-11-28 10:29:55
问题 I have a multi-module project (supporting instant apps and installed app). When using AS 3.0 RC1 and RC2 I'm no longer able to launch app....getting Default Activity not found I have a number of product flavors and issue could be related to fact that appropriate LAUNCHER activity is declared in AndroidManifest.xml for each flavor (I have chosen one of those flavors in "Build Variants" section). This has been working fine up to AS 3.0 Beta 7. 回答1: Not sure how I didn't spot this but when

Unable to get provider android.arch.lifecycle.LifecycleRuntimeTrojanProvider: java.lang.ClassNotFoundException

你离开我真会死。 提交于 2019-11-28 09:04:43
问题 i'm getting this class not found error on api's below 21 even though google said it supports till api 14 i have tried it on android studio 3.0 beta 6 09-19 17:12:39.273 2794-2794/? E/AndroidRuntime: FATAL EXCEPTION: main Process: xxxx, PID: 2794 java.lang.RuntimeException: Unable to get provider android.arch.lifecycle.LifecycleRuntimeTrojanProvider: java.lang.ClassNotFoundException: Didn't find class "android.arch.lifecycle.LifecycleRuntimeTrojanProvider" on path: DexPathList[[zip file "/data