android-studio

Updated AndroidStudio(3.5.3) not building Android Project, Caused by: org.gradle.api.resources.ResourceException:Unable to load Maven meta-data

佐手、 提交于 2020-03-10 05:06:43
问题 Updated Android Studio not building Android Project, before it was building. I have checked with Proxy settings still it is getting same Below are the exceptions after rebuilding the Android Project. org.gradle.api.ProjectConfigurationException: A problem occurred configuring root project 'Gsa2_NewMenu'. Caused by: org.gradle.api.resources.ResourceException: Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.3.2/gradle-3.3.2.pom'. at org.gradle

Updated AndroidStudio(3.5.3) not building Android Project, Caused by: org.gradle.api.resources.ResourceException:Unable to load Maven meta-data

前提是你 提交于 2020-03-10 05:02:40
问题 Updated Android Studio not building Android Project, before it was building. I have checked with Proxy settings still it is getting same Below are the exceptions after rebuilding the Android Project. org.gradle.api.ProjectConfigurationException: A problem occurred configuring root project 'Gsa2_NewMenu'. Caused by: org.gradle.api.resources.ResourceException: Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.3.2/gradle-3.3.2.pom'. at org.gradle

Cannot enable Gradle's offline mode on Android Studio 3.6

孤街浪徒 提交于 2020-03-09 04:45:45
问题 I'm using the new Android Studio 3.6 Canary 9 to test new functionalities, and I cannot enable Gradle's offline mode. In Android Studio Preferences window, tab Gradle, I cannot find the entry point to enable it. Is this a bug or Google has disabled Gradle's offline mode? Note that --offline option is still working when using command line. 回答1: From the Android Studio 3.6 new features blog post: New location to toggle Gradle's offline mode To enable or disable Gradle's offline mode, first

android studio 0.4.2: Gradle project sync failed error

試著忘記壹切 提交于 2020-03-07 02:36:10
问题 After updating to 0.4.2 I get this error when opening a project: 'Gradle project sync failed. Basic functionality (e.g. editing, debugging) will not work proprerly' The event log shows this: Error occurred during initialization of VM Could not reserve enough space for object heap Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. at org.gradle.launcher.daemon.bootstrap.DaemonGreeter.parseDaemonOutput(DaemonGreeter.java:34) at org.gradle

android studio 0.4.2: Gradle project sync failed error

橙三吉。 提交于 2020-03-07 02:35:25
问题 After updating to 0.4.2 I get this error when opening a project: 'Gradle project sync failed. Basic functionality (e.g. editing, debugging) will not work proprerly' The event log shows this: Error occurred during initialization of VM Could not reserve enough space for object heap Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. at org.gradle.launcher.daemon.bootstrap.DaemonGreeter.parseDaemonOutput(DaemonGreeter.java:34) at org.gradle

Phone number format in Android. (X-XXX-XXX-XX)

守給你的承諾、 提交于 2020-03-06 07:16:09
问题 I have a editText which will accept phone number from the user. My target is as soon as user enters the phone number it should be formatted like "X-XXX-XXX-XXX" and once a user long pressed it will open the dialler. I search on google but found format like XXX-XXX-XXX by using this code. PhoneNumberUtils.formatNumber(String) How can i achieve my desire output? 回答1: Add editText in your xml file like this <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools=

gravity and layout:gravity properties not showing up in Android Studio 2.3

自古美人都是妖i 提交于 2020-03-06 02:42:42
问题 I have a LinearLayout inside of which I have a textView . When I click on textView in component tree I don't see it's gravity property in Properties menu on the right side. I also don't see layout:gravity property. Even after manually adding those properties in xml, I still don't see them. 回答1: You need to click on the "two arrows" at the top of the Properties menu to see all the properties If you want to see them in the base list, you can add them as "favorite attributes" by clicking on the

gravity and layout:gravity properties not showing up in Android Studio 2.3

眉间皱痕 提交于 2020-03-06 02:41:25
问题 I have a LinearLayout inside of which I have a textView . When I click on textView in component tree I don't see it's gravity property in Properties menu on the right side. I also don't see layout:gravity property. Even after manually adding those properties in xml, I still don't see them. 回答1: You need to click on the "two arrows" at the top of the Properties menu to see all the properties If you want to see them in the base list, you can add them as "favorite attributes" by clicking on the

setting gradle on offline mode in android studio

空扰寡人 提交于 2020-03-05 06:38:17
问题 I'm messing about the android studio and having a problem with Gradle. I'm looking to put gradle on offline mode for more speed, but the error below pops up: No cached version of com.android.tools.build:gradle:3.1.2 available for offline mode. How to fix this? 回答1: I think you have to build the project online at lease once after adding the library and make it offline afterwards will solve your issue 回答2: For running project completely offline I have a small trick. Go to folder that you have

GoldfishAddressSpaceHostMemoryAllocator: ioctl_ping failed

﹥>﹥吖頭↗ 提交于 2020-03-05 06:07:46
问题 After migrating to AndroidX,this code has stopped working. Before migrating to AndroidX,this code was working. Error : 2020-02-24 09:41:17.918 17888-17921/edmt.dev.androidgridlayout E/eglCodecCommon: GoldfishAddressSpaceHostMemoryAllocator: ioctl_ping failed for device_type=5, ret=-1 BackgroundTask.java: package edmt.dev.androidgridlayout; import android.content.Context; import android.os.AsyncTask; import android.view.View; import android.widget.Toast; import java.io.BufferedReader; import