gpt4 book ai didi

java - 当版本低于 Lollipop 时 INSTALL_FAILED_DEXOPT

转载 作者:行者123 更新时间:2023-12-03 03:18:15 25 4
gpt4 key购买 nike

当我尝试在低于 lollipop api 的版本上运行我的应用程序时,我总是收到此错误。 Click here to see error.运行

    pkg: /data/local/tmp/batstate.commutersalertbutton
Failure [INSTALL_FAILED_DEXOPT]
Error while Installing APK

LogCat

 02-19 22:28:13.904 1937-1944/com.google.android.gms E/StrictMode: A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
java.lang.Throwable: Explicit termination method 'close' not called
at dalvik.system.CloseGuard.open(CloseGuard.java:184)
at dalvik.system.DexFile.<init>(DexFile.java:111)
at dalvik.system.DexFile.loadDex(DexFile.java:149)
at dalvik.system.DexPathList.loadDexFile(DexPathList.java:259)
at dalvik.system.DexPathList.makeDexElements(DexPathList.java:223)
at dalvik.system.DexPathList.<init>(DexPathList.java:106)
at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:46)
at dalvik.system.DexClassLoader.<init>(DexClassLoader.java:57)
at com.google.android.chimera.container.DexOptUtils.optimizeModule(:com.google.android.gms:86)
at bcs.run(:com.google.android.gms:1726)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
at java.lang.Thread.run(Thread.java:841)


02-19 22:31:03.120 1706-1722/com.google.process.gapps E/StrictMode: A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
java.lang.Throwable: Explicit termination method 'close' not called
at dalvik.system.CloseGuard.open(CloseGuard.java:184)
at com.google.android.gms.org.conscrypt.Platform.closeGuardOpen(:com.google.android.gms:383)
at com.google.android.gms.org.conscrypt.OpenSSLSocketImpl.startHandshake(:com.google.android.gms:297)
at com.google.android.gms.org.conscrypt.PreKitKatPlatformOpenSSLSocketImplAdapter.startHandshake(:com.google.android.gms:318)
at com.google.android.gms.common.net.SSLCertificateSocketFactory.verifyHostname(:com.google.android.gms:217)
at com.google.android.gms.common.net.SSLCertificateSocketFactory.createSocket(:com.google.android.gms:507)
at libcore.net.http.HttpConnection.setupSecureSocket(HttpConnection.java:197)
at libcore.net.http.HttpsURLConnectionImpl$HttpsEngine.makeSslConnection(HttpsURLConnectionImpl.java:478)
at libcore.net.http.HttpsURLConnectionImpl$HttpsEngine.connect(HttpsURLConnectionImpl.java:433)
at libcore.net.http.HttpEngine.sendSocketRequest(HttpEngine.java:290)
at libcore.net.http.HttpEngine.sendRequest(HttpEngine.java:240)
at libcore.net.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:81)
at libcore.net.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:197)
at libcore.net.http.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:281)
at com.google.android.gms.http.GoogleHttpClient.a(:com.google.android.gms:943)
at com.google.android.gms.http.GoogleHttpClient.a(:com.google.android.gms:761)
at com.google.android.gms.http.GoogleHttpClient.execute(:com.google.android.gms:669)
at com.google.android.gms.http.GoogleHttpClient.execute(:com.google.android.gms:653)
at cyh.a(:com.google.android.gms:233)
at dmx.a(:com.google.android.gms:263)
at dmx.a(:com.google.android.gms:4235)
at dmw.a(:com.google.android.gms:47)
at dmq.a(:com.google.android.gms:55)
at dmp.a(:com.google.android.gms:113)
at com.google.android.gms.auth.account.be.legacy.AuthCronChimeraService.a(:com.google.android.gms:3054)
at mwx.run(:com.google.android.gms:179)
02-19 22:31:03.120 1706-1722/com.google.process.gapps E/StrictMode: A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
java.lang.Throwable: Explicit termination method 'end' not called
at dalvik.system.CloseGuard.open(CloseGuard.java:184)
at java.util.zip.Inflater.<init>(Inflater.java:82)
at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:96)
at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:81)
at libcore.net.http.HttpEngine.initContentStream(HttpEngine.java:547)
at libcore.net.http.HttpEngine.readResponse(HttpEngine.java:850)
at libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:283)
at libcore.net.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:497)
at libcore.net.http.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:134)
at com.google.android.gms.http.GoogleHttpClient.a(:com.google.android.gms:797)
at com.google.android.gms.http.GoogleHttpClient.a(:com.google.android.gms:762)
at com.google.android.gms.http.GoogleHttpClient.execute(:com.google.android.gms:669)
at com.google.android.gms.http.GoogleHttpClient.execute(:com.google.android.gms:653)
at cyh.a(:com.google.android.gms:233)
at dmx.a(:com.google.android.gms:263)
at dmx.a(:com.google.android.gms:4235)
at dmw.a(:com.google.android.gms:47)
at dmq.a(:com.google.android.gms:55)
at dmp.a(:com.google.android.gms:113)
at com.google.android.gms.auth.account.be.legacy.AuthCronChimeraService.a(:com.google.android.gms:3054)
at mwx.run(:com.google.android.gms:179)

当我尝试再次运行我的应用程序时,它会显示此内容。 Click here to see error 。但是当我尝试在更高版本的 Lollipop 版本上运行它时,没有问题。我尝试清理该项目。

最佳答案

尝试将其添加到您的 gradle.properties

android.enableD8=false
android.enableD8.desugaring= false

关于java - 当版本低于 Lollipop 时 INSTALL_FAILED_DEXOPT,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48877455/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com