過了一個(gè)節(jié)回來Android Studio項(xiàng)目運(yùn)行又編譯不過了,報(bào)如下錯(cuò)誤:
Unable to load class 'javax.xml.bind.JAXBException'
This is an unexpected error. Please file a bug containing the idea.log file
解決方法:
修改項(xiàng)目下的build.gradle版本號(hào),將gradle版本升級(jí)到4.x.x
dependencies {
classpath 'com.android.tools.build:gradle:4.2.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}