android - 在 Android Studio 中构建和运行后,滚动和 Android Studio 工作非常慢

标签 android performance android-studio gradle android-gradle-plugin

实际上我在 Android Studio(v 1.1.0) 中使用 iMac(OS X Yosemite,2013)工作 我只打开了一个项目,当我运行应用程序时,在应用程序之后在我的设备上运行 Android Studio 开始工作非常慢,大约 1 或 2 分钟,例如:在类、xml 等中滚动非常慢,而我的应用程序仍在我的设备上运行。

有没有可能运行不影响这个?

p.s 我遵循了以下所有步骤:Building and running app via Gradle and Android Studio is slower than via Eclipse它并没有影响它。

这是我的 build.gradle 文件(应用模块):

apply plugin: 'com.android.application'

android {
    compileSdkVersion 21
    buildToolsVersion "21.0.2"

    defaultConfig {
        applicationId “com.example.example1”
        minSdkVersion 14
        targetSdkVersion 21
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}
android {
    packagingOptions {
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/NOTICE'
    }
}
dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile files('libs/httpmime-4.3.2 2.jar')
    compile files('libs/httpclient-4.3.2 2.jar')

    compile project(':library')
    compile 'com.android.support:appcompat-v7:21.0.3'
    compile project(':facebook')
    compile project(':universal-image-loader-1.9.3')
    compile project(':simple-crop-image-lib')
}

最佳答案

这个问题终于解决了。 如果有人正在处理通过 Subversion 同步的项目。 1)转到版本控制并设置无。 enter image description here

关于android - 在 Android Studio 中构建和运行后,滚动和 Android Studio 工作非常慢,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28742711/

相关文章:

java - JUnit - Android Studio - NoClassDefFoundError 异常

android - Gradle SourceSets 按 productFlavor 和 buildType

android - 错误 "Device supports x86, but APK only supports armeabi-v7a"的原因是什么

android - 为什么我不能将现有项目导入 Eclipse?

c++ - 为什么项目 "run"在 NetBeans 内部终端中比在 Windows 命令提示符中更快?

android-studio - 如何从 Android Studio 将项目导入到 bitbucket 存储库?

android - 在 Android 中使用 Wowza Server 获取实时 ip 地址的实时视频广播

c++ - std::vector<std::unique_ptr<T>> 有更好的替代方案吗?

c# - 在 Property Setter 中,仅在值不同时设置是否有益?

java - 无法将textView文本从MainActivity(第一个 Activity )传递到UserprofileActivity(第二个 Activity )