问题:

我正在通过从GitHub测试一些项目来使用Android Studio,当我尝试模拟apk时,它不允许我选择模拟器。

它告诉我:

设备支持x86,但APK仅支持armeabi-v7a

为什么这样做呢?

I am playing around with Android Studio by testing some projects out from GitHub and when I try to emulate the apk, it does not let me choose an emulator.It tells me:Device supports x86, but APK only supports armeabi-v7aWhy does it do this?

问题:

以下是Android Studio中的build.gradle代码

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "com.sg.blahblah"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }

    lintOptions {
        checkReleaseBuilds true
        abortOnError false
        xmlReport true
        htmlReport true
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

            lintOptions {
                disable 'MissingTranslation'
            }
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.1.1'
    compile 'com.android.support:design:23.1.1'
    compile 'com.android.support:support-v4:23.1.1'
    compile 'com.android.support:cardview-v7:23.1.1'
    compile 'com.google.android.apps.dashclock:dashclock-api:+'
    compile 'com.roughike:bottom-bar:1.4.0.1'
    compile 'com.diogobernardino:williamchart:2.2'
}

我收到以下错误:错误:配置项目’:app’时出现问题。

无法通知项目评估侦听器。 com.android.build.gradle.tasks.factory.AndroidJavaCompile.setDependencyCacheDir(Ljava / io / File;)V

谁能帮忙吗?

以下是即时运行屏幕截图 在此处输入图片说明

Following is the build.gradle code in Android StudioI am getting the below error: Error:A problem occurred configuring project ‘:app’.Failed to notify project evaluation listener.com.android.build.gradle.tasks.factory.AndroidJavaCompile.setDependencyCacheDir(Ljava/io/File;)VCan anyone please help?Following is the Instant Run screenshot

问题:

我更新了android studio 2.3,但有一个错误,gradle无法构建,并且在所有项目中都给我同样的错误。

Error:Failed to open zip file.
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
<a href="syncProject">Re-download dependencies and sync project (requires network)</a>
<a href="syncProject">Re-download dependencies and sync project (requires network)</a>

我已经在寻找解决方案,但是没有找到任何解决方案。 我试过了:

Invalidate Caches / Restart...

但是什么都没有改变。

I updated android studio 2.3 and there is a bug, gradle doesn’t build and it keeps giving me the same error for all projects.I have already searched for a solution, but have not found any.I tried:but nothing has changed.

问题:

我从昨天开始学习Android Studio。 我试着回应简单的“Hello World”:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
    android:id="@+id/activity_main"
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingLeft="16dp"
    android:paddingRight="16dp"
    android:paddingTop="16dp"
    android:paddingBottom="16dp"
    tools:context=".MainActivity">

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Hello World!" />

</RelativeLayout>

但是当我点击“设计”视图时,会出现此错误?

在成功构建之前,设计编辑器不可用

我该如何解决这个错误。 我昨天刚刚下载了Android Studio。

在此输入图像描述

在此输入图像描述

我刚注意到我的xml代码导致错误。 这就是为什么这可能不起作用。 非常感谢

I started to learn Android Studio from yesterday.I try to echo out simple “Hello World”:but when I clicked “design” view, this error is showing?Design editor is unavailable until a successful buildHow Can I fix this error.I just downloaded Android Studio yesterday.I just noticed that my xml code is causing error.that is why this may be not working.Thank you so much

问题:

从Android Studio项目启动模拟器设备后大约每4秒钟就会在“运行”窗口中打印一条错误消息。 这非常令人讨厌,因为它劫持了焦点。 如果我在调试窗口中,它会每4秒切换到运行窗口,因为这个错误无论我做什么。

这是一天前开始的,但我不知道是什么引起了它。 我现在使用相同的模拟器设备已有几个月了。 也许是Android SDK某些部分的升级? 外部SDK Manager不再可调用。

在此输入图像描述


在我启动这个API 25磨损模拟器后,消息就开始出现了。 一个解决方法是使该选项卡浮动,然后它不会劫持我的焦点; 我把它移到我的第二台显示器上。


我还注意到我无法连接我的物理设备上运行的Android Wear应用程序(我使用模拟磨损运行物理手机)和我的模拟器。

About every 4 second after I start the emulator device from my Android Studio project an error message is printed into the Run window.It’s extremely annoying because it hijacks the focus.If I’m in the Debug window it switches to the Run window every 4 seconds because of this error no matter what I do.This started a day ago, but I don’t know what induced it.I use the same emulator devices for several months now.Maybe an upgrade of some portion of Android SDK?The external SDK Manager is not invokable any more.The messages start to come right after I boot up this API 25 wear emulator.One workaround is to make that tab float, then it doesn’t hijack my focus;I move it to my second monitor.I also noticed I cannot connect my Android Wear app running on my physical device (I’m running physical phone with the emulated wear) with my emulator.