我是android的新手,我在java代码中遇到了这个问题
cannot resolve symbol 'getCheckedRadioButtonId'
关于此代码
Bind(R.id.radioGroup) RadioGroup _radioGroup;
if (_radioGroup.getCheckedRadioButtonId() != -1)
{
}
它没有收到getCheckedRadioButtonId
。我想从RadioButton
检查文本。我该怎么做?
答案 0 :(得分:0)
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.example.elhez.tammeni"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.3.0'
compile 'com.android.support:design:23.3.0'
compile 'com.jakewharton:butterknife:7.0.1'
compile 'com.google.android.gms:play-services-appindexing:8.1.0'
}