Android工作室没有刷新新版本

Fil*_*nik 13 android android-studio

随着华硕ZenPad10发生,有时我运行一个应用程序,而旧的应用程序开始.所以我认为已经修复了一些东西,但实际上我正在测试仍然存在错误的版本,耗费了大量时间.

对于其他平板电脑,这不会发生.除此之外,我需要禁用ADB以在平板电脑中启动应用程序.使用Nexus 10,我无需执行任何操作.

在/ data/app目录中,还有所有目录(如"myapp /")而不是像Nexus 10中的apks(如"myapp.apk").

有没有想过要避免刷新问题?

我想知道"通过USB验证应用程序"是否可能是原因,但我无法在华硕上禁用它.

我认为没有必要,但这是我的主要gradle文件:

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    repositories {
        maven { url "http://dl.bintray.com/populov/maven" }
        mavenCentral()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.+'
    }
}

allprojects {
    repositories {
        mavenCentral()
        jcenter()
        maven {
            url 'https://github.com/suckgamony/RapidDecoder/raw/master/repository'
        }
    }
}

task wrapper(type: Wrapper) {
    gradleVersion = '2.5' //version required
}
Run Code Online (Sandbox Code Playgroud)

这是我的App gradle文件:

apply plugin: 'com.android.application'

dependencies {
    compile fileTree(include: '*.jar', dir: 'libs')
    compile project(':Structure:StructureExam')
    compile 'com.github.bmelnychuk:atv:1.2.+'
    compile 'com.github.johnkil.print:print:1.3.1'
    compile 'de.codecrafters.tableview:tableview:0.9.6'
}

android {
    compileSdkVersion 23
    buildToolsVersion '23.0.1'

    signingConfigs {
        release {
            storeFile file("../../myfile.jks")
            storePassword "mypass"
            keyAlias "myalias"
            keyPassword "mypass"
        }
    }

    buildTypes {
        release {
            signingConfig signingConfigs.release
        }
    }

    lintOptions {
        checkReleaseBuilds false
        // Or, if you prefer, you can continue to check for com.centervue.lib_util.errors in release builds,
        // but continue the build even when com.centervue.lib_util.errors are found:
        abortOnError false
    }

    sourceSets {
        main {
            manifest.srcFile 'AndroidManifest.xml'
            java.srcDirs = ['src']
            resources.srcDirs = ['src']
            aidl.srcDirs = ['src']
            renderscript.srcDirs = ['src']
            res.srcDirs = ['res']
            assets.srcDirs = ['assets']
        }

        // Move the tests to tests/java, tests/res, etc...
        instrumentTest.setRoot('tests')

        // Move the build types to build-types/<type>
        // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
        // This moves them out of them default location under src/<type>/... which would
        // conflict with src/ being used by the main source set.
        // Adding new build types or product flavors should be accompanied
        // by a similar customization.
        debug.setRoot('build-types/debug')
        release.setRoot('build-types/release')
    }
}
Run Code Online (Sandbox Code Playgroud)

Mah*_*raa 7

它看起来你有即时运行ON(默认情况下).该功能导致仅将设备上的应用更改为应用.什么可能会导致你面临的麻烦......

禁用它:[设置/首选项] - >构建,执行,部署 - >即时运行:取消选中"启用即时运行到热插拔代码......"

或者,您可以使用 运行中的干净和重新运行'app'(^⌘R)