我安装了Android Studio 0.1.9.今天我得到并更新到0.2版本,当然我更新了.安装完成后,我重新启动了Android Studio,但现在收到此消息:
Project正在使用旧版本的Android Gradle插件.支持的最低版本为0.5.0.请更新依赖项'com.android.tools.build:gradle'的版本
我怎么做?我在android studio中找不到任何gradle插件的更新工具.
当我在Android Studio中"运行"我的项目时,在"消息"窗口中,我得到:
Gradle:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':play01:compileDebug'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Run Code Online (Sandbox Code Playgroud)
它说> Compilation failed; see the compiler error output for details.
那么"编译器错误输出"在哪里?和/或我如何运行--stacktrace选项?
有人可以ANDROID_HOME通过终端发布有效的设置解决方案吗?
我的Android-SDK之路是/Applications/ADT/sdk.
我昨天安装了Android Studio,我尝试使用LogCat查看日志.但是在logcat中没有任何东西可以显示.我使用终端运行./adb logcat它的工作原理.
是否有人可以向我解释如何在Android Studio中使用logcat?
当我在调试模式下运行时,应用程序崩溃了,但是当我正常运行它时它会起作用.我认为附加调试器时会出现问题.
日志:
A/art: art/runtime/jdwp/jdwp_event.cc:661] Check failed: Thread::Current() != GetDebugThread() (Thread::Current()=0x7f44a18400, GetDebugThread()=0x7f44a18400) Expected event thread
A/art: art/runtime/runtime.cc:422] Runtime aborting...
A/art: art/runtime/runtime.cc:422] Aborting thread:
A/art: art/runtime/runtime.cc:422] "JDWP" prio=5 tid=4 WaitingForDebuggerSend
A/art: art/runtime/runtime.cc:422] | group="" sCount=0 dsCount=0 obj=0x12c60280 self=0x7f44a18400
A/art: art/runtime/runtime.cc:422] | sysTid=24137 nice=0 cgrp=default sched=0/0 handle=0x7f4b904450
A/art: art/runtime/runtime.cc:422] | state=R schedstat=( 132066712 16401043 106 ) utm=9 stm=2 core=3 HZ=100
A/art: art/runtime/runtime.cc:422] | stack=0x7f4b80a000-0x7f4b80c000 stackSize=1005KB
A/art: art/runtime/runtime.cc:422] | held mutexes= "abort lock"
A/art: art/runtime/runtime.cc:422] native: #00 pc 000000000047e2cc /system/lib64/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+220)
A/art: …Run Code Online (Sandbox Code Playgroud) debugging android android-debug android-studio android-debugging
在我使用构建版本gradle 26之前,但在将buildtoolsversion更改为27之后就像这个图像一样
错误:错误构建gradle screenshot

我需要在res/drawable文件夹中添加图片......
当我选择时new > image asset,会出现一个对话框来选择Asset Type......
如何将图像添加到res/drawable文件夹?
Android Studio中是否有一个快捷方式可以自动生成给定类中的getter和setter?
我正在使用Android Studio,当我添加compile "com.android.support:appcompat-v7:21.0.0"
到Gradle文件时,我遇到了大量错误:
C:\Users\WindowsSucks\AndroidStudioProjects\MMMeds\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.0\res\values-v11\values.xml
Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
C:\Users\WindowsSucks\AndroidStudioProjects\MMMeds\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.0\res\values-v14\values.xml
Error:(9, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
Error:(9, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
Error:(9, …Run Code Online (Sandbox Code Playgroud) 我想更改项目和模块的名称.但是,如果我尝试重命名它们,Android Studio会通知我一些错误...
例如,我想将名称从"MyApplication"更改为"AndroidApp",如下图所示.

在第一个矩形我想改变它:
AndroidApp("G:...\Android\AndroidApp).
在第二个矩形我想改变它:
AndroidApp [AndroidApp-AndroidApp]
编辑:这是日志:
Gradle:项目'AndroidApp'在根项目'MyApplicationProject'中找不到.
的build.gradle:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.5.+'
}
}
apply plugin: 'android'
repositories {
mavenCentral()
}
android {
compileSdkVersion 18
buildToolsVersion "18.0.1"
defaultConfig {
minSdkVersion 7
targetSdkVersion 16
}
}
dependencies {
compile 'com.android.support:support-v4:18.0.0'
}
Run Code Online (Sandbox Code Playgroud)
settings.gradle:
include ':MyApplication'
Run Code Online (Sandbox Code Playgroud)