android-studio

Gradle - Could not get unknown property 'scm' for configuration container

﹥>﹥吖頭↗ 提交于 2020-05-12 09:01:41
问题 Execution failed for task ':app:iterateDeclaredDependencies'. > Could not get unknown property 'scm' for configuration container of type org.gradle.api.internal.artifacts.configurations.DefaultConfigurationContainer. I'm using the exact code snippet from Working with Dependencies I don't know what scm is here but autocompletion seems to suggests that all is good, no? Versions I'm using: ------------------------------------------------------------ Gradle 5.4.1 ---------------------------------

Recovering files deleted by Android studio?

你离开我真会死。 提交于 2020-05-12 03:19:42
问题 I'm working on an app at the moment, and one of the final steps was to get it built and signed in Android studio. Unfortunately I was having some problems, and one of the recommended solutions was to remove the project and start again, however when I did this it took all of my files with it, and they're not in the trash (OSX) either. Is there anyway to recover these files, or are they lost forever? :( 回答1: You can try: looking for those files in the file system (perhaps they are still in your

Recovering files deleted by Android studio?

和自甴很熟 提交于 2020-05-12 03:19:39
问题 I'm working on an app at the moment, and one of the final steps was to get it built and signed in Android studio. Unfortunately I was having some problems, and one of the recommended solutions was to remove the project and start again, however when I did this it took all of my files with it, and they're not in the trash (OSX) either. Is there anyway to recover these files, or are they lost forever? :( 回答1: You can try: looking for those files in the file system (perhaps they are still in your

Recovering files deleted by Android studio?

青春壹個敷衍的年華 提交于 2020-05-12 03:18:44
问题 I'm working on an app at the moment, and one of the final steps was to get it built and signed in Android studio. Unfortunately I was having some problems, and one of the recommended solutions was to remove the project and start again, however when I did this it took all of my files with it, and they're not in the trash (OSX) either. Is there anyway to recover these files, or are they lost forever? :( 回答1: You can try: looking for those files in the file system (perhaps they are still in your

Android studio design editor is unavailable until after a successful project sync

好久不见. 提交于 2020-05-11 17:50:58
问题 what is the actual root cause of this issue? I already sync with gradle files but eventually failed. 回答1: Just sync your project with gradles. File --> Sync Project with Gradle Files 回答2: Build -> Clean Project Build -> Rebuild Project File -> Sync project with gradle files . If not worked then try File -> Invalidate Caches / Restart . It's work for me !!! 回答3: That could be fixed in one or two steps, depending on how nice is Android Studio today: Try to sync your project with gradle files:

Android studio design editor is unavailable until after a successful project sync

╄→гoц情女王★ 提交于 2020-05-11 17:47:50
问题 what is the actual root cause of this issue? I already sync with gradle files but eventually failed. 回答1: Just sync your project with gradles. File --> Sync Project with Gradle Files 回答2: Build -> Clean Project Build -> Rebuild Project File -> Sync project with gradle files . If not worked then try File -> Invalidate Caches / Restart . It's work for me !!! 回答3: That could be fixed in one or two steps, depending on how nice is Android Studio today: Try to sync your project with gradle files:

Where is “Activity Manager State” in Android Studio 3?

拜拜、爱过 提交于 2020-05-11 05:22:56
问题 There was a very handy feature for debugging, that was present in Android studio 2.x, but currently is not there in 3.x. It was a bit hidden in the UI: Then it will prompt with detailed activity manager state: I know, that I can acquire that output with adb shell dumpsys activity top , I'm just curious whether it is possible to get the old functionality back? 回答1: As pointed out by Wojtek Kaliciński in a tweet: A bug is opened here. Update We apologize if this was inconvenient. The old

Gradle Sync Failed Android Studio 3.6 [duplicate]

会有一股神秘感。 提交于 2020-05-11 03:57:40
问题 This question already has answers here : Cannot enable Gradle's offline mode on Android Studio 3.6 (9 answers) Closed 2 months ago . I have just updated the Android Studio from 3.5.3 to 3.6. After this update, I have updated the Gradle and Android SDK Build Tools as well. Now the Gradle sync is failing with these errors: 1. org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all artifacts for configuration ':classpath'. 2. org

Gradle Sync Failed Android Studio 3.6 [duplicate]

不羁岁月 提交于 2020-05-11 03:57:06
问题 This question already has answers here : Cannot enable Gradle's offline mode on Android Studio 3.6 (9 answers) Closed 2 months ago . I have just updated the Android Studio from 3.5.3 to 3.6. After this update, I have updated the Gradle and Android SDK Build Tools as well. Now the Gradle sync is failing with these errors: 1. org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all artifacts for configuration ':classpath'. 2. org

Android studio: NoClassDefFoundError with java.util.Base64

孤街浪徒 提交于 2020-05-10 14:46:49
问题 Apologies, I've scanned the many similar-sounding questions and none of them have helped me. I'm running Android Studio 3.0.1, I'm a newbie, I'm following the online tutorial "HelloWorld" program but then adding a call to java.util.Base64.getDecoder(). This fails at runtime when I run it on my actual phone (Samsung Galaxy S8): java.lang.NoClassDefFoundError: Failed resolution of: Ljava/util/Base64; Caused by: java.lang.ClassNotFoundException: Didn't find class "java.util.Base64" on path: