第五集包冲突的问题
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation files('libs/TingPhoneOpenSDK_7.0.14.jar')
implementation files('libs/XmlyOAuth2SDK_V1.11.jar')
implementation'com.squareup.okhttp3:okhttp:3.3.1'
implementation'com.google.code.gson:gson:2.8.0'
implementation 'com.github.hackware1993:MagicIndicator:1.5.0'
你原问题是这个,那么 说明INotificationSideChannel 这个类有冲突了,那么你ctrl+n(查找类的快捷键)输入这个类名,就会显示出在哪里有这个类了,这样子就就知道了哪两个包冲突了。因为包名一样,类名一样,所以在引用的时候就冲突了嘛。在kotlin里解决了这样的问题,用as xxx就可以了。引用的时候用xxx,有空学一下这门新的语言,应用范围比较广。
已解决,升到了AndroidX