error: package com.google.maps.android.kml does not exist
error: package com.google.maps.android.kml does not exist
嗨,我正在使用 android studio,我看到一个新错误
我在 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'
}
而且我已经尝试了人们所说的所有丢失包裹的方法
我试过了"File->invalidate cache/...."
已尝试更新 sdk
尝试清理和重建
已尝试删除所有 "iml" 个文件并删除 .idea 文件夹
尝试重新排序依赖项
尝试使用 "optimize imports on fly" 和 "add unambiguous imports on fly"
none 他们工作
我需要帮助
编辑 1:
顺便说一句,这个错误最近出现了。它很好,直到 2 天前才工作。突然出现这个错误
大约 2 天前。
尝试将导入更改为:
import com.google.maps.android.data.kml.KmlLayer;
KmlLayer
class 在 v0.5 版本中移动。
我还建议删除 compile
语句中的 +
,因此它应该如下所示:
compile 'com.google.maps.android:android-maps-utils:0.5'
嗨,我正在使用 android studio,我看到一个新错误
我在 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'
}
而且我已经尝试了人们所说的所有丢失包裹的方法
我试过了"File->invalidate cache/...."
已尝试更新 sdk
尝试清理和重建
已尝试删除所有 "iml" 个文件并删除 .idea 文件夹
尝试重新排序依赖项
尝试使用 "optimize imports on fly" 和 "add unambiguous imports on fly"
none 他们工作
我需要帮助
编辑 1:
顺便说一句,这个错误最近出现了。它很好,直到 2 天前才工作。突然出现这个错误
大约 2 天前。
尝试将导入更改为:
import com.google.maps.android.data.kml.KmlLayer;
KmlLayer
class 在 v0.5 版本中移动。
我还建议删除 compile
语句中的 +
,因此它应该如下所示:
compile 'com.google.maps.android:android-maps-utils:0.5'