[英]error: package com.google.maps.android.kml does not exist
我已经在我的Gradle中使用了它的包:
dependencies {
//compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.pnikosis:materialish-progress:1.7'
compile 'com.michaelpardo:activeandroid:3.1.0-SNAPSHOT'
compile 'com.google.maps.android:android-maps-utils:0.4+'
compile 'com.google.android.gms:play-services:6.5.87'
compile 'de.hdodenhof:circleimageview:2.0.0'
compile 'uk.co.chrisjenx:calligraphy:2.1.0'
compile 'com.astuetz:pagerslidingtabstrip:1.0.1'
compile 'org.java-websocket:java-websocket:1.3.1'
compile 'com.google.code.gson:gson:2.4'
compile 'com.sothree.slidinguppanel:library:3.2.0'
compile 'com.balysv.materialmenu:material-menu:1.5.4'
compile files('libs/signalr-client-sdk-1.4.jar')
compile(name: 'signalr-client-sdk-android-release-1.4', ext: 'aar')
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
compile 'com.viewpagerindicator:viewpagerindicator:2.4.3'
}
而且我尝试了人们所说的丢失包裹的所有方法
我试过“文件->使缓存无效/ ....”
尝试更新SDK
尝试清洁和重建
尝试删除所有“ iml”文件并删除.idea文件夹
尝试重新排序依赖项
尝试使用“动态优化导入”和“动态添加明确的导入”
他们都没有工作
我需要帮助
编辑1:
顺便说一句,这个错误最近已经显示出来。 很好,并且可以工作到2天前。 突然出现这个错误
大约2天前。
尝试将导入更改为:
import com.google.maps.android.data.kml.KmlLayer;
KmlLayer
类在v0.5版本中移动。
我还建议删除您的compile
语句中的+
,因此它应类似于:
compile 'com.google.maps.android:android-maps-utils:0.5'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.