【发布时间】:2019-04-18 21:03:08
【问题描述】:
我切换到 {N} 5.0,现在我遇到了 nativescript-google-map-sdk 的问题, 与此处相同的错误: Android Google maps java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/ProtocolVersion
Android API 28 的问题,有一个配置应该在清单中手动设置,https://developers.google.com/maps/documentation/android-sdk/config#specify_requirement_for_apache_http_legacy_library
当我添加时
<uses-library
android:name="org.apache.http.legacy"
android:required="false" />
到我的 App_Resources/Android/AndroidManifest.xml
我收到这个错误
* What went wrong:
任务“:app:processDebugResources”执行失败。
Android 资源链接失败 输出:/Users/rudm/dev/mobile/new5/platforms/android/app/build/intermediates/merged_manifests/debug/processDebugManifest/merged/AndroidManifest.xml:21:错误:在.中找到意外元素。
有没有办法让谷歌地图与 {N} 5.0 一起工作?
【问题讨论】:
标签: nativescript nativescript-angular nativescript-plugin nativescript-google-maps-sdk