1
Android Studio不提供「捆綁」類的所有方法。Android Studio - 支持包
當我想使用.getString()時,它顯示我爲錯誤。我不知道爲什麼 !?!?!
這是我的gradle產出:
apply plugin: 'com.android.application'
android {
compileSdkVersion 20
buildToolsVersion "20.0.0"
defaultConfig {
applicationId "test.android.com.test"
minSdkVersion 14
targetSdkVersion 19
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile project(':facebook')
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.nineoldandroids:library:2.4.+'
compile 'com.android.support:support-v13:20.0.+'
compile 'com.google.android.gms:play-services:4.2.42'
compile 'com.mcxiaoke.volley:library:1.0.6'
}
你確定你有正確的'import'聲明?也許你正在拉一些名爲'Bundle'的類,而不是你期望的類。 – CommonsWare 2014-09-30 21:49:32
是的,我正在使用正確的導入。導入android.os.Bundle; – 2014-09-30 21:53:17
你正在收到什麼具體的錯誤信息? – CommonsWare 2014-09-30 21:54:14