Tag: android studio

如何在Android Studio中使用adb通过WiFi进行debugging

我可以连接到我的手机使用adb连接,我也可以adbshell。 但是当我去运行 – >设备select器,那里没有设备。 我应该怎么做才能连接我的(连接的)adb Android Studio? 当我通过USB插入时,它显示在列表中

Android Studio Gradle BuildTools修订版

我在Android Studio 0.5.9中有一个Android项目,Gradle正在抛出这个错误: Error:The SDK Build Tools revision (17.0.0) is too low. Minimum required is 19.0.0 我已经从SDK Manager安装了SDK Build Tools修订版本19,这里是我的build.gradle buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.10.+' } } apply plugin: 'android' repositories { mavenCentral() } android { compileSdkVersion 17 buildToolsVersion "19.0.0" defaultConfig { minSdkVersion 9 targetSdkVersion 17 } sourceSets { main […]

如何在Android Studio上使用非翻译string来签名APK?

背景 我最近把我的应用程序迁移到Android-Studio。 我遇到了一些问题,但最终我终于解决了。 问题 出于某种原因,在Android Studio上,当我尝试签署一个APK时,我收到了很多像这样的错误: Error:(16) Error: "…" is not translated in "de" (German), "el" (Greek), "iw" (Hebrew) [MissingTranslation] (其中“…”是一个string) 在底部,经过这种错误很多,我看到这样的: Error:Execution failed for task ':app:lintVitalRelease'. > Lint found fatal errors while assembling a release target. To proceed, either fix the issues identified by lint, or modify your build script as follows: … android […]

Android Studio没有看到genymotion

我更新了0.5到0.8.14版本的android studio,但是现在的studio没有看到genymotion,现在我该做什么? 感谢所有。 编辑:我通过更新genymotion解决了这个问题

ProGuard:库类的重复定义?

我运行我的Android项目的ProGuard并得到以下警告: Note: duplicate definition of library class [org.apache.http.conn.scheme.HostNameResolver] Note: duplicate definition of library class [org.apache.http.conn.scheme.SocketFactory] Note: duplicate definition of library class [org.apache.http.conn.ConnectTimeoutException] Note: duplicate definition of library class [org.apache.http.params.HttpParams] Note: duplicate definition of library class [android.net.http.SslCertificate$DName] Note: duplicate definition of library class [android.net.http.SslError] Note: duplicate definition of library class [android.net.http.SslCertificate] Note: there were 7 duplicate […]

IndexNotReadyException – Android Studio

在properties选项卡中更改widget的值时, AndroidStudio会一直抛出IndexNotReadyException 。 但重试几分钟后,错误不会发生。 这里是错误日志: com.intellij.openapi.project.IndexNotReadyException: Please change caller according to com.intellij.openapi.project.IndexNotReadyException documentation at com.intellij.util.indexing.FileBasedIndexImpl.handleDumbMode(FileBasedIndexImpl.java:856) at com.intellij.util.indexing.FileBasedIndexImpl.ensureUpToDate(FileBasedIndexImpl.java:805) at com.intellij.util.indexing.FileBasedIndexImpl.processExceptions(FileBasedIndexImpl.java:930) at com.intellij.util.indexing.FileBasedIndexImpl.collectFileIdsContainingAllKeys(FileBasedIndexImpl.java:1190) at com.intellij.util.indexing.FileBasedIndexImpl.processFilesContainingAllKeys(FileBasedIndexImpl.java:1018) at com.intellij.psi.impl.search.PsiSearchHelperImpl$26.compute(PsiSearchHelperImpl.java:1096) at com.intellij.psi.impl.search.PsiSearchHelperImpl$26.compute(PsiSearchHelperImpl.java:1093) 我已经更新了AndroidStudio ,最新的一个。 但仍然发生错误。 任何修复或解决?

testing工件select器丢失/从Android Studio 2 Beta 5中的生成变体

为了从Android Studio中运行Instrumentationtesting,我通常通过Build Variants窗口select“Android Instrumentation Tests”作为要构build的testing工件。 我最近升级到Android Studio 2 Beta 5,并且“Test Artifact”select器不再可见。 它去了哪里? 是否有其他configuration取而代之?

在命令行上使用Gradle生成一个android studio项目失败:Xlint错误

当我尝试用这个命令用gradlebuild立一个android项目时: > gradlew clean build assembleRelease 它给了我这个错误: Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 我可以build立这个项目,并在Studio中制作APK。 有没有办法configurationGradle来编译忽略Xlint通知的编译? 或者,我可以使用其他参数,使用gradle / gradlew从命令行释放?

Android布局中的占位符文本(仅限devise过程)?

是否可以创build仅在Android Studio中的布局devise过程中可见的占位符文本? 例如,假设我有一个线性布局的2个TextView,它们将被dynamic填充。 在devise阶段,我使用占位符文本来确保填充和正确。 我经常忘记删除占位符文本,因此在加载新数据时,旧数据将出现一瞬间…看起来很俗气。 这将是很酷,如果有一个字段类似于android:placeholderText="This is placeholder text" ,只会显示在预览。 有没有我碰巧错过的东西在那里?

如何设置gradle和android studio来进行发布构build?

我想要构buildAndroid应用程序并开始签名。 为此,我需要有发布版本的apk。 谷歌文档build议只有Eclipse和ant的方式来发布版本: http : //developer.android.com/tools/publishing/app-signing.html#releasecompile 不过我找不到如何强制gradle build版本的apk。 build.gradle不给任何提示。 gradlew tasksbuild议,没有安装Releaseconfiguration,但存在卸载版本: Install tasks ————- installDebug – Installs the Debug build installTest – Installs the Test build for the Debug build uninstallAll – Uninstall all applications. uninstallDebug – Uninstalls the Debug build uninstallRelease – Uninstalls the Release build uninstallTest – Uninstalls the Test build for the […]