Orb*_*bit 8 android google-maps android-studio instant-run android-instant-run
即时运行和Google地图似乎存在问题.在重新运行应用程序以查看更改时,如果应用程序正在使用Google地图,则会发生崩溃.这是堆栈跟踪的一部分:
java.lang.RuntimeException:
android.content.res.Resources$NotFoundException: File res/drawable/common_google_signin_btn_text_light_focused.xml from drawable resource ID
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
........
Caused by: android.content.res.Resources$NotFoundException: File res/drawable/common_google_signin_btn_text_light_focused.xml from drawable resource ID
at android.content.res.Resources.loadDrawableForCookie(Resources.java:2640)
.....
Caused by: android.content.res.Resources$NotFoundException: File res/drawable-xxhdpi-v4/maps_btn_myl_pressed.png from drawable resource ID
Run Code Online (Sandbox Code Playgroud)
崩溃是因为a ResourcesNotFoundException而发生的,这似乎是由上面的堆栈跟踪中列出的文件引起的.
有没有人遇到过这个问题,如果有的话,解决了什么?
小智 0
在文件中尝试这个gradle:
android {
defaultConfig {
vectorDrawables.useSupportLibrary = true
}
}
Run Code Online (Sandbox Code Playgroud)
并使用最新的buildToolsVersion '28.0.3'
| 归档时间: |
|
| 查看次数: |
319 次 |
| 最近记录: |