当我在android studio上创build一个新项目时,它不会产生任何问题。 不过,看一下activity_main.xmldevise,它显示了这一点: 渲染问题渲染期间引发的exception:action_bar。 当我从devise页面更改sdk级别22到21时android studio显示什么 我怎么解决这个问题? 这不是重要的问题,但我想知道如何解决这个问题。
在Android Studio 2.2的预览版1中,Google在其支持库中发布了一个新布局: ConstraintLayout 。 使用ConstraintLayout在Android Studio中使用devise工具更容易,但是我没有find使用相对大小(百分比或LinearLayout中的“权重”)的方法。 有没有一种方法来定义基于百分比的约束? 例如,使视图占用40%的屏幕,在视图之间创build20%的边距,将视图的宽度设置为另一个视图宽度的50%?
尝试制作项目模块时出现此错误 apply plugin: 'com.android.library' android { compileSdkVersion 17 buildToolsVersion "19.1.0" defaultConfig { minSdkVersion 8 targetSdkVersion 8 } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' } } } dependencies { compile files('libs/sdk.jar') compile files('libs/ads-lib.jar') compile project(':google-play-services_lib') compile files('libs/hdvdecoderandroid.jar') } 我该如何解决这个错误? 编辑 这是我的日志文件,当我尝试在命令行中构build它 org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':hDVietAndroid:m ergeDebugResources'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAct ions(ExecuteActionsTaskExecuter.java:69) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(Ex […]
我正在Android Studio中开发一个Android应用程序。 不太清楚哪里出了问题。 前几天我成功build设了。 任何帮助将是伟大的。 这是错误: Error:Execution failed for task ':app:compileDebugJavaWithJavac'. > Compilation failed; see the compiler error output for details. * What went wrong: Execution failed for task ':app:compileDebugJavaWithJavac'. > Compilation failed; see the compiler error output for details. 这是我的build.gradle apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "21.1.2" defaultConfig { multiDexEnabled true applicationId […]
我有一个Android Studio应用程序。 它有一个库依赖(Android的Bootstrap),当我尝试同步gradle,说我错误: 未find名称为“default”的configuration。 我的结构是: -FTPBackup -fotobackup -build.gradle -Libraries -Android-Bootstrap -Settings.gradle -build.gradle -Settings.gradle -Build.gradle FTPBackup settings.gradle和build.gradle: include ':fotobackup' include ':libraries:Android-Bootstrap',':Android-Bootstrap' // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.9.+' } } allprojects { repositories { mavenCentral() } } 而fotobackup里面的build.gradle是: apply […]
我刚刚安装了新的SDK工具(Android L Developer Preview),我试图使用RecyclerView但它似乎缺less。 从我的理解,我应该包括v7支持库,但我似乎无法做到这一点… 我似乎无法findSDK文件夹中的V7库(我没有从SDKpipe理器安装Android支持库)。 谢谢你。
我刚刚更新了Android Studio,我无法同步我的项目了。 事件日志报告: Gradle sync failed: /Applications/Android Studio.app/Contents/gradle/gradle-XXX/lib/plugins/gradle-diagnostics-XXXjar (No such file or directory)
我遇到了麻烦,试图用Gradle 0.5。+和Android Studio编译Android应用程序,使用SimpleXML。 这是错误的: Gradle: Execution failed for task ':MyApplication:dexDebug'. > Failed to run command: /Applications/Android Studio.app/sdk/build-tools/android-4.2.2/dx –dex –output <REALLY_LONG_STRING…..> Error Code: 1 Output: trouble processing "javax/xml/stream/events/StartElement.class": Ill-advised or mistaken usage of a core class (java.* or javax.*) when not building a core library. This is often due to inadvertently including a core library file […]
我已经构build了我的android库包(aar),并在“.. \ app \ build \ outputs \ aar”文件夹中创build了构build的结果。 在这个文件夹中的文件被称为“app-debug.aar”,所以我想它已经build立在debugging模式,所以我想知道如何genereate内置版本,即“app-release.aar”。 我怎样才能做到这一点? 另外,是否有可能通过另一个自定义名称来创build构build,例如“myCustomAppName-release.aar”而不是“app-release.aar”。
有没有可能在Android Studio中显示adb logcat的tcpip设备? 我正在写一个应用程序,利用USB端口,我不能用于adb usb 。 目前,我正在使用以下指令来查看命令提示符中的logcat,但如果将它集成到AS中,将会很好: http : //developer.android.com/tools/help/adb.html#wireless