android-studio-2.2

Android studio Shortcuts for MAC Not Visible

纵然是瞬间 提交于 2019-12-12 03:53:45
问题 I recently switched my Android Development from Linux to Mac and have been facing a lot of issues especially with the shortcuts keys in Android Studio. I am getting around this as I have not previously used Mac either. However, I have been facing a very weird issue wherein the shortcut keys are not visible inside Android studio and are showing up as boxes (maybe MAC does not have those icons) whereas in Options menu on Top these icons are showing up correctly. I am attaching a screen shot

Android Studio 2.2 - Can no longer create unsigned release builds - “validateSigningReleaseLive FAILED”

不打扰是莪最后的温柔 提交于 2019-12-12 03:03:44
问题 After upgrading to Android Studio 2.2, I can no longer create an unsigned release build. Debug builds are created fine. This problem didn't happen on Android Studio 2.1. I can't figure it out. The app gradle file has this: defaultConfig { applicationId "com.company.myapp" versionCode 66 versionName "1.0" signingConfig signingConfigs.noSigning minSdkVersion 15 targetSdkVersion 23 multiDexEnabled true } buildTypes { debug { } release { minifyEnabled true // Set to true to enable proguard

ClassNotFoundException on android devices pre lollipop after update Android Studio, gradle and language level

别等时光非礼了梦想. 提交于 2019-12-12 00:50:58
问题 After updating Android Studio to 2.2.3, gradle to 2.2.3, and language level to 1_8 an exception occurs: E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.myapp, PID: 3467 java.lang.RuntimeException: Unable to instantiate application com.example.myapp.MyApp: java.lang.ClassNotFoundException: Didn't find class "com.example.myapp.MyApp" on path: DexPathList[[zip file "/data/app/com.example.myapp-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.myapp-1, /system/lib]] at

Android Studio - set build directory globally (per machine)

孤人 提交于 2019-12-11 08:43:10
问题 I can set the build directory manually like following for example: allprojects { buildDir = "C:/tmp/${rootProject.name}/${project.name}" } This can be done in my project's build.gradle . I want to change this directory on one computer only, so I want to somehow define this globally like I for example define credentials in the Global Properties gradle.properties file. Can I somehow define the buildDir globally on one machine? I want to use the same project on multiple machines and without

Execution failed for app:clean in android studio 2.2

限于喜欢 提交于 2019-12-11 08:42:11
问题 I currently switch to android studio 2.2 and I have a big problem. when I build project to deploy on emulator I got this error: Error:Execution failed for task ':app:clean'. > Unable to delete directory: /mnt/D/Document/WorkSpace/Android/Test/app/build/intermediates/exploded-aar/com.android.support/animated-vector-drawable/25.0.0/jars I clean that path and again it tell me that: Error:Execution failed for task ':app:clean'. > Unable to delete directory: /mnt/D/Document/WorkSpace/Android/Test

Is this a bug at Android Studio?

≯℡__Kan透↙ 提交于 2019-12-11 06:26:55
问题 I make UI of many buttons to input text by constraint layout. For example, the following image. But,I feel strange that android studio become very slow as I put more UIs and adaptive hook allows I set, sometimes disappear(ex.some buttons' allow disapper head row above image).It should use very large memory and I guess free memory to calculate position and re-render UI. Can I avoid this situation? or Alternative way to make same UI using another layout. I'm very nervous for this problem

Could not download gradle-core.jar

回眸只為那壹抹淺笑 提交于 2019-12-10 13:44:33
问题 My Android Studio cannot import gradle-core.jar. The error message contained in the article, Error: Could not download gradle-core.jar (com.android.tools.build:gradle-core:2.1.2): No cached version available for offline mode, My android version is 2.2.2 and I use AMD processors, it makes me not able to install intel HAXM. Anyone have a solution? 回答1: I recently faced the same issue. Do the following: Go to Android Studio Settings -> Build Tools -> Gradle In project-level settings set "Use

Android Studio 2.2 Preview 3 Layout Error

旧巷老猫 提交于 2019-12-10 13:16:08
问题 I just updated my android studio to the 2.2 Preview 3 and on trying the new constraint layout i placed a edittext into the layout and ran the app on my phone but this is what i got i then tried converting the constraint layout back to how the code was before constraint layout , the results were the same. activity_main.xml <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas

“failed to resolve x” errors after updating to Android studio to 2.2

拟墨画扇 提交于 2019-12-10 11:56:49
问题 Google launched Android Studio 2.2, so I updated my Android studio 2.1 to Android Studio 2.2 When i make a Project I get these errors ( and more) : Error:Failed to resolve: javax.inject:javax.inject:1 Error:Failed to resolve: com.google.code.findbugs:jsr305:2.0.1 Error:Failed to resolve: javax.annotation:javax.annotation-api:1.2 回答1: I have recently installed 2.2 version of Android Studio and I am also facing this problem. But don't worry just follow the following simple steps. Connect your

Could not get unknown property 'assembleRelease' for project

[亡魂溺海] 提交于 2019-12-09 07:51:47
问题 After updating Android Studio to version 2.2 and the gradle plugin to 2.2.0, I get following error: Error:(32, 1) A problem occurred evaluating project ':jobdispatcher'. Could not get unknown property 'assembleRelease' for project ':jobdispatcher' of type org.gradle.api.Project. The problem is in the build.gradle file of an imported jobdispatcher module: task aar(dependsOn: assembleRelease) What changes can I make to fix this? Note, this issue is very similar to, but still a bit different to,