android-studio-3.0

Android emulator not able to access the internet

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-27 06:08:02
I know that similar questions have been asked before, but my problem is new only after installing Android Studio 2.3, the latest version in March 2017. I have several years experience developing Android applications, and I have never encountered this problem before. After upgrading to version 2.3 of Android Studio, my emulator is no longer able to access the internet. I even uninstalled/reinstalled Android Studio 2.3 from scratch and created a new emulator, and I am still getting the same error. This is not an app problem. I can't even access the internet from Chrome, and I wasn't having this

Unsupported method: BaseConfig.getApplicationIdSuffix()

99封情书 提交于 2019-11-27 04:56:11
问题 So I'm reading Android 6 for Programmers: An App-Driven Approach and the first two app examples I had no issues with the examples, this time the FlagQuiz example when loaded in Android Studio 3.0 Canary-3 I'm getting this error which isn't letting me build the project: Error:Unsupported method: BaseConfig.getApplicationIdSuffix(). The version of Gradle you connect to does not support that method. To resolve the problem you can change/upgrade the target version of Gradle you connect to.

Could not resolve com.android.support:appcompat-v7:26.1.0 in Android Studio new project

为君一笑 提交于 2019-11-27 04:36:26
I know about this questions: Failed to resolve: com.android.support:cardview-v7:26.0.0 android Could not resolve com.android.support:appcompat-v7:26.1.0 [duplicate] And I've read this documentations: Migrate to Android Plugin for Gradle 3.0.0 Migrating to Android 8.0 So I'm posting this question believing its not a duplicate. I've installed Android Studio 3.0.1. I didn't have any previous version before and I started a new project. Every setting in Gradle file have been set by Android Studio itself and I've checked them all. These are the file contents: build.gradle (Module:app) apply plugin:

java.lang.IllegalArgumentException: Invalid Region.Op - only INTERSECT and DIFFERENCE in Button background failure

孤街醉人 提交于 2019-11-27 01:59:22
android Button background failure when I try to add android:background="@drawable/roundedbutton" into the .xml <Button android:id="@+id/button_stop" style="@android:style/Widget.Button" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="3dp" android:background="@drawable/roundedbutton" android:layout_weight="1" android:text="stop" android:textSize="18sp" /> the roundedbutton.xml <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <solid android:color="@color/colorPrimary

Android Studio 3.0 Error. Migrate dependency configurations for local modules

99封情书 提交于 2019-11-27 00:10:07
问题 I recently installed the latest Canary build of Android Studio which is currently using the Android Gradle plugin 3.0.0-alpha4 . I now get a error: Error:Failed to resolve: Could not resolve project :MyLib. Required by: project :app I has read: Migrate dependency configurations for local modules dependencies { // This is the old method and no longer works for local // library modules: // debugCompile project(path: ':foo', configuration: 'debug') // releaseCompile project(path: ':foo',

Unable to Merge Dex - Android Studio 3.0

China☆狼群 提交于 2019-11-26 22:37:48
When I updated my Android Studio to 3.0 in the stable channel and ran the project, I started getting the below error. Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex I tried cleaning and rebuilding the project, but it didn't work. Any help will be appreciated. Project level build.gradle buildscript { repositories { jcenter() google() } dependencies { classpath 'com.android.tools.build:gradle:3.0.0' classpath 'com.google.gms:google-services:3.1.0' // NOTE: Do not place your

Android SDK missing with Android Studio 3

倾然丶 夕夏残阳落幕 提交于 2019-11-26 20:35:16
问题 I've just downloaded Android Studio 3 for Windows from the official website, but when it starts, it displays an error message about a missing Android SDK : When I click that link, it just redirects to the same official website. There isn't a separate link there for SDK download. Where could I get it from? Shouldn't the Android SDK be installed during Android Studio 3 setup? 回答1: Apparently, the problem was that Android Studio 3.0 had already been installed and uninstalled before this. The SDK

Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve

杀马特。学长 韩版系。学妹 提交于 2019-11-26 18:20:16
问题 Newly installed Android studio 3.1.3 is giving strange dependencies error when making a new project and compiling for very first time. A similar question that didn't help resolve the problem. Event Logs: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support:appcompat-v7:28.0.0-alpha3. Open File Show Details Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support.constraint:constraint-layout:1.1.2.

all gms/firebase libaries must use the exact same version. Found versions 15.1.0, 15.0.2, 15.0.1, 15.0.0.

拈花ヽ惹草 提交于 2019-11-26 16:44:11
问题 Trying to implement Firebase in my project. Gradle file: apply plugin: 'com.android.application' android { compileSdkVersion 27 defaultConfig { applicationId "com.ghaleh.myapplication" minSdkVersion 16 targetSdkVersion 27 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { implementation

How to use Data Binding and Kotlin in Android Studio 3.0.0

℡╲_俬逩灬. 提交于 2019-11-26 15:30:17
问题 I just started to use Android Studio 3.0.0, but every time I try to build my project I get this error: Error:Circular dependency between the following tasks: :app:compileDebugKotlin +--- :app:dataBindingExportBuildInfoDebug | \--- :app:compileDebugKotlin (*) \--- :app:kaptDebugKotlin \--- :app:dataBindingExportBuildInfoDebug (*) (*) - details omitted (listed previously) I am using kapt "com.android.databinding:compiler:2.2.0" Before I was using androidProcessor "com.android.databinding