android-studio-3.1

What is “Program type already present”?

别来无恙 提交于 2019-12-01 06:31:30
When i try to build my project.i got this error Program type already present: android.support.v4.accessibilityservice.AccessibilityServiceInfoCompat Message{kind=ERROR, text=Program type already present: android.support.v4.accessibilityservice.AccessibilityServiceInfoCompat, sources=[Unknown source file], tool name=Optional.of(D8)} i also to find solution in stack overflow but it didn't help.here is my build.gradle file apply plugin: 'com.android.application'android { compileSdkVersion 28 defaultConfig { applicationId "com.example.hassan.qrscan" minSdkVersion 18 targetSdkVersion 28 versionCode

Caused by: java.lang.IllegalArgumentException: couldn't make a guess for com.example.example.databinding.ContentClassApplicationMyClass1Binding

回眸只為那壹抹淺笑 提交于 2019-12-01 04:00:48
I'm getting this error in android after updating the android studio from 3.0 to 3.1 and Gradle from 3.1 to 4.4. How can I fix it? It's working properly with Gradle 3.1 and android studio 3.0. How can I get it to work? Gradle app: buildscript { repositories { maven { url 'https://maven.fabric.io/public' } } dependencies { classpath 'io.fabric.tools:gradle:1.+' } } apply plugin: 'com.android.application' apply plugin: 'io.fabric' repositories { mavenCentral() google() maven { url 'https://maven.fabric.io/public' } } android { compileSdkVersion 27 dataBinding { enabled = true } defaultConfig {

What is “Program type already present”?

你说的曾经没有我的故事 提交于 2019-12-01 02:00:50
问题 When i try to build my project.i got this error Program type already present: android.support.v4.accessibilityservice.AccessibilityServiceInfoCompat Message{kind=ERROR, text=Program type already present: android.support.v4.accessibilityservice.AccessibilityServiceInfoCompat, sources=[Unknown source file], tool name=Optional.of(D8)} i also to find solution in stack overflow but it didn't help.here is my build.gradle file apply plugin: 'com.android.application'android { compileSdkVersion 28

Android Studio 3.1 Where is the TimePicker in the Layout Editor

☆樱花仙子☆ 提交于 2019-11-30 17:16:14
On upgrade to Android Studio 3.1 there is no TimePicker in the layout editor palette. Search doesn't find it. In fact all of the picker controls seem to have vanished. They were there in 3.0. I am not sure where to find it in the selection menu but if you just need a time picker in your project you can select the Text tab on the bottom of your activity.xml file and paste the TimePicker xml. <TimePicker android:id="@+id/simpleTimePicker" android:layout_width="wrap_content" android:layout_height="wrap_content" android:timePickerMode="spinner"/> Then you can select which timePickerMode you want

Gradle project sync failed after Android-Studio (3.1) update

纵饮孤独 提交于 2019-11-30 16:41:42
问题 After an update I made on 27-03-2018, my gradle sync is failing.I am getting the error Could not find org.jetbrains.kotlin:kotlin-stdlib:1.1.3-2. I am posting my gradle files below. I have tried cleaning and rebuilding the project, but it is still not working. Project level gradle // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { google() jcenter() maven { url 'https://maven.google.com/' } } dependencies {

Android Studio 3.1 not showing build error details

寵の児 提交于 2019-11-30 12:28:11
问题 I have updated to Android Studio 3.1 and it doesn't show the details of error during compile time. Suppose if I miss a semicolon somewhere or I haven't implemented a method of an interface, then it gives me this error all the time, but doesn't tell me what or where the error occurred! All error details were perfectly shown in Studio 3.0. How do I see them in 3.1? This is the message that I get every time an error occurs. Compilation error. See log for more details 回答1: There is a toggle

Failed to generate apk from Android studio 3.1.1

三世轮回 提交于 2019-11-30 08:36:34
When I try to generate a signed APK, I found this issue : 10:58 Generate Signed APK: Errors while building APK. You can find the errors in the 'Messages' view. No cached version of com.android.tools.lint:lint-gradle:26.1.1 available for offline mode. this is my android studio details : Android Studio 3.1.1 Build #AI-173.4697961, built on April 4, 2018 JRE: 1.8.0_152-release-1024-b02 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Windows 10 10.0 this block for signing the apk : buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'),

IOException: Failed to find byte code when upgrade to Android Studio 3.1

爱⌒轻易说出口 提交于 2019-11-30 07:52:34
Yesterday, Google announced that Android Studio 3.1 is available in the stable release channel. So I give it a try. Before of that my project was build successfully but after I upgraded AS to 3.1 and Gradle build tool to com.android.tools.build:gradle:3.1.0 (it forced upgrade gradle wrapper to 4.4), it failed with this given exception: java.lang.RuntimeException: com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: java.io.IOException: Failed to find byte code for android/hardware/camera2/CameraManager$TorchCallback at com.android.builder

Android Studio 3.1 Logcat prefix not always showing and breaking pretty logger

别说谁变了你拦得住时间么 提交于 2019-11-30 06:25:14
问题 Since the new version of Android Studio (3.1) the Logcat window doesn't always show the prefix ( 03-28 12:43:01.091 nl.test.app D/log ). I made my own logger, which prints in a pretty way, but this gets broken since some lines are no longer with the same indentation. I'll show an example below. 03-28 12:43:01.091 nl.test.app D/log: ╔═══════════════════════════════════════════════════════════════════════════════════════ ║ [ (TestActivity.kt:33)#OnCreate ] ║ This is my test log 03-28 12:43:01

Android Studio fails to generate databinding after 3.1.0 update

こ雲淡風輕ζ 提交于 2019-11-30 05:40:33
This morning I made an update to android studio from 3.0.1 to 3.1.0. After updating the gradle to latest version I still get build error regarding data binding. My gradle-wrapper.properties : distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip All my errors are like the one below: /Users/mp/Documents/GitHub/projectx/app/build/generated/source/dataBinding/baseClasses/Staging/debug/me/projectx/asdasd/databinding/GridItemActivityTypeBinding.java:57: error: cannot find symbol @Nullable DataBindingComponent component) { ^ symbol: class DataBindingComponent location: class