实际上,我有兴趣知道如果通过纠正任何这些错误,我可以改善AVD的性能,这太慢了。
我在Android Studio 1.3.2上使用Android SDK 6和Java SDK 8.在带有4GB RAM的Intel i3上(约1.5GB免费)。
AVD:Nexus_5_API_23_x86,内存为512MB。
来自Logcat的完整错误日志在这里: http://pastebin.com/UReeY720
以
开头09-04 23:02:09.902 0-945/? E/lowmemorykiller? Kernel does not support memory pressure events or in-kernel low memory killer
09-04 23:02:10.688 965-965/? E/perfprofd? unable to open configuration file /data/data/com.google.android.gms/files/perfprofd.conf
09-04 23:02:11.470 958-958/? E/? batterystats service unavailable!
09-04 23:02:11.470 958-958/? E/? batterystats service unavailable!
09-04 23:02:11.491 958-958/? E/? batterystats service unavailable!
以
结束09-04 23:04:37.002 958-1286/? E/Drm? Failed to find drm plugin
09-04 23:04:40.318 1800-1828/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:180)
at java.util.zip.Inflater.<init>(Inflater.java:82)
at com.android.okhttp.okio.GzipSource.<init>(GzipSource.java:62)
at com.android.okhttp.internal.http.HttpEngine.unzip(HttpEngine.java:645)
at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:827)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:439)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:384)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:497)
at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:105)
at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java)
at com.google.android.gms.http.GoogleHttpClient.a(SourceFile:811)
at com.google.android.gms.http.GoogleHttpClient.a(SourceFile:776)
at com.google.android.gms.http.GoogleHttpClient.execute(SourceFile:676)
at com.google.android.gms.http.GoogleHttpClient.execute(SourceFile:660)
at com.google.android.gms.auth.be.j.a(SourceFile:220)
at com.google.android.gms.auth.be.appcert.a.a(SourceFile:263)
at com.google.android.gms.auth.be.appcert.a.a(SourceFile:132)
at com.google.android.gms.auth.be.appcert.b.a(SourceFile:43)
at com.google.android.gms.auth.b.b.a(SourceFile:62)
at com.google.android.gms.auth.b.a.a(SourceFile:120)
at com.google.android.gms.auth.b.a.a(SourceFile:61)
at com.google.android.gms.auth.be.cron.AuthCronService.a(SourceFile:44)
at com.google.android.gms.gcm.al.run(SourceFile:135)
09-04 23:04:41.365 1743-2123/com.google.android.gms.persistent E/MDM? [93] b.run: Couldn't connect to Google API client: ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null, message=null}
(所有这些只是初始化AVD,我没有运行我的应用程序)