android-studio

Duplicate class from androidx.core:core:1.0.0 and com.android.support:support-compat:26.1.0

为君一笑 提交于 2020-02-23 03:51:19
问题 This is my build.gradle : 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' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' repositories { maven { url 'https://maven.fabric.io/public' } google() } android { compileSdkVersion 26 buildToolsVersion '26.0.2' useLibrary 'org.apache.http.legacy' defaultConfig {

ProcessException: ExecException: Process 'command ' /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Content/Home/bin/java

↘锁芯ラ 提交于 2020-02-21 13:17:46
问题 I am getting exception: Error:Execution failed for task ':app:dexDebug'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2 after i updated the Google Play services to 7.5.0 as: compile 'com.google.android.gms:play-services:7.5.0' but if i change it back to: compile 'com.google.android.gms:play-services:7.0.0' everything is

ProcessException: ExecException: Process 'command ' /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Content/Home/bin/java

流过昼夜 提交于 2020-02-21 13:13:12
问题 I am getting exception: Error:Execution failed for task ':app:dexDebug'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2 after i updated the Google Play services to 7.5.0 as: compile 'com.google.android.gms:play-services:7.5.0' but if i change it back to: compile 'com.google.android.gms:play-services:7.0.0' everything is

ProcessException: ExecException: Process 'command ' /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Content/Home/bin/java

人盡茶涼 提交于 2020-02-21 13:12:48
问题 I am getting exception: Error:Execution failed for task ':app:dexDebug'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2 after i updated the Google Play services to 7.5.0 as: compile 'com.google.android.gms:play-services:7.5.0' but if i change it back to: compile 'com.google.android.gms:play-services:7.0.0' everything is

How do I fix “Could not connect to remote process” while trying to debug the application?

六眼飞鱼酱① 提交于 2020-02-21 10:26:19
问题 I am making a android studio project and I try to debug my application. Running the application works fine, but when I try to debug it I get this error: Could not connect to remote process. Aborting debug session. What can I do to fix the issue? 回答1: You need to restart the ADB. kill adb.exe process. how to restart ADB manually from Android Studio 回答2: Check if you have selected the right Build Variant, usually " release " comes with debuggable false Example: buildTypes { release { debuggable

How do I fix “Could not connect to remote process” while trying to debug the application?

时光怂恿深爱的人放手 提交于 2020-02-21 10:26:12
问题 I am making a android studio project and I try to debug my application. Running the application works fine, but when I try to debug it I get this error: Could not connect to remote process. Aborting debug session. What can I do to fix the issue? 回答1: You need to restart the ADB. kill adb.exe process. how to restart ADB manually from Android Studio 回答2: Check if you have selected the right Build Variant, usually " release " comes with debuggable false Example: buildTypes { release { debuggable

Convert java to kotlin on paste

末鹿安然 提交于 2020-02-21 10:14:05
问题 So I checked "Don't show this dialog next time", but it turns out that it will then never convert the code again. Where do I remove the checkmark again so I can get back to converting the java code to kotlin when pasted? Thanks in advance. https://developer.android.com/kotlin/get-started.html#convert-to-kotlin-code 回答1: Preferences -> Editor -> General -> Smart Keys -> Scroll to the end -> Convert posted Java code to Kotlin 回答2: In my case I needed to have the "Do you want to convert ..."

PANIC: Cannot find AVD system path. Please define ANDROID_SDK_ROOT (in windows 10)

核能气质少年 提交于 2020-02-21 07:36:26
问题 While running an app on the virtual device (AVD ) created on Android studio (in Windows 10 ), I am getting an error and panic. Emulator: PANIC: Cannot find AVD system path. Please define ANDROID_SDK_ROOT Emulator: Process finished with exit code 1 While I have already defined my ANDROID_SDK_ROOT in the environment variables. Can anyone please tell me how to resolve this problem? 回答1: define ANDROID_SDK_ROOT as environment variable where your SDK is residing, default path would be "C:\Program

PANIC: Cannot find AVD system path. Please define ANDROID_SDK_ROOT (in windows 10)

生来就可爱ヽ(ⅴ<●) 提交于 2020-02-21 07:34:16
问题 While running an app on the virtual device (AVD ) created on Android studio (in Windows 10 ), I am getting an error and panic. Emulator: PANIC: Cannot find AVD system path. Please define ANDROID_SDK_ROOT Emulator: Process finished with exit code 1 While I have already defined my ANDROID_SDK_ROOT in the environment variables. Can anyone please tell me how to resolve this problem? 回答1: define ANDROID_SDK_ROOT as environment variable where your SDK is residing, default path would be "C:\Program

git.exe error for android studio

拥有回忆 提交于 2020-02-20 08:47:45
问题 Recently I am trying to connect git hub repository to android studio but it shows following the error: 回答1: get a git path from your pc go to my computer >open c:drive > Users>YourUser>Appdata>Local>Github>PortableGit_\cmd\git.exe then copy the file location and past it into your git executable path in android studio as shown in the above image 回答2: Go to Settings-->Version Control-->Git and Fix Path to Git executable. Also click test button to check it is working. 回答3: For my case git.exe