android – 使用Jack编译器时禁用Instant Run

android – 使用Jack编译器时禁用Instant Run,第1张

概述我在gradle中收到了这条消息: Instant Run is disabled when Jack compiler is used 我的编译时间太长了. 3:54:11 PM Gradle build finished with 1 warnings(s) in 17m 15s 937ms 我认为是因为这个消息. 我很担心离线模式. 我的朋友: apply plugin: 'com.andr 我在gradle中收到了这条消息:
Instant Run is Disabled when Jack compiler is used

我的编译时间太长了.

3:54:11 PM Gradle build finished with 1 warnings(s) in 17m 15s 937ms

我认为是因为这个消息.

我很担心离线模式.

我的朋友:

apply plugin: 'com.androID.application'androID {    compileSdkVersion 23    buildToolsversion '24.0.0'    defaultConfig {        applicationID "*.*.*"        minSdkVersion 16        targetSdkVersion 23        versionCode 1        versionname "1.0"        jackOptions {            enabled true        }        // Enabling multIDex support.        multIDexEnabled true    }    buildTypes {        release {            MinifyEnabled false            proguardfiles getDefaultProguardfile('proguard-androID.txt'),'proguard-rules.pro'        }    }    compileOptions {        sourceCompatibility JavaVersion.VERSION_1_8        targetCompatibility JavaVersion.VERSION_1_8    }    dexOptions {        javaMaxHeapSize "4g"        incremental false        preDexlibrarIEs = false    }}repositorIEs {    maven { url "https://oss.sonatype.org/content/repositorIEs/snapshots/" }    maven { url 'https://raw.github.com/felipecsl/m2repository/master' }    maven { url "https://jitpack.io" }    mavenCentral()}dependencIEs {    compile filetree(include: ['*.jar'],dir: 'libs')    compile('com.github.florent37:materialvIEwpager:1.2.0@aar') {        transitive = true    }    compile files('libs/volley.jar')    compile files('libs/gson-2.2.4.jar')    compile files('libs/AndroIDVIEwAnimations-1.1.3.jar')    compile 'com.androID.support:appcompat-v7:23.4.0'    compile 'com.androID.support:recyclervIEw-v7:23.4.0'    compile 'com.androID.support:design:23.4.0'    compile 'com.androID.support:multIDex:1.0.1'    compile 'com.androID.support:cardvIEw-v7:23.+'    compile 'com.androID.support:support-v4:23.2.1'    compile 'com.mohamadamin:persianmaterialdatetimepicker:1.2.1'    compile 'com.pacioianu.davID:ink-page-indicator:1.1.1'    compile 'com.github.carlonzo.stikkyheader:core:0.0.3-SNAPSHOT'    compile 'com.alexvasilkov:foldable-layout:1.2.0'    compile 'com.github.bumptech.glIDe:glIDe:3.7.0'    compile 'com.alexvasilkov:androID-commons:1.2.4'    compile 'com.melnykov:floatingactionbutton:1.0.7'    compile 'com.nineoldandroIDs:library:2.4.0'    compile 'com.github.ksoichiro:androID-observablescrollvIEw:1.5.0'    compile 'de.hdodenhof:circleimagevIEw:2.0.0'    compile 'com.github.FuckBoilerplate:RxPaparazzo:0.1.0'    compile 'io.reactivex:rxjava:1.1.5'    compile 'com.squareup.picasso:picasso:2.5.2'    compile 'cn.pedant.sweetalert:library:1.3'    compile 'com.Google.androID.gms:play-services-maps:9.4.0'    compile 'com.androID.support.constraint:constraint-layout:1.0.0-Alpha7'    testCompile 'junit:junit:4.12'    compile 'com.squareup.picasso:picasso:2.5.2'    compile 'com.github.chrisbanes:PhotoVIEw:1.3.0'    compile 'com.Google.androID.gms:play-services-location:9.4.0'    compile 'com.akexorcist:Googledirectionlibrary:1.0.4'}
解决方法 那个已知的问题.据报道 here

Instant Run does not currently work with Jack and will be Disabled
while using the new toolchain

在这里检查我的答案AndroidStudio is too slow,看看你是否可以在建筑时间上讲

总结

以上是内存溢出为你收集整理的android – 使用Jack编译器禁用Instant Run全部内容,希望文章能够帮你解决android – 使用Jack编译器时禁用Instant Run所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1137397.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-30
下一篇 2022-05-30

发表评论

登录后才能评论

评论列表(0条)

保存