我使用Twilio尝试在android中制作视频通话应用 但是每当我尝试获取访问令牌时,都会抛出异常
private fun retrieveAccessTokenfromServer() {
var twilioAccountSid = "...";
var twilioApiKey = "...";
var twilioApiSecret = "....";
var identity = "soun";
// Create Video grant
var grant = VideoGrant()
grant.setRoom("DailyStandup");
// Create access token
var token = AccessToken.Builder(
twilioAccountSid,
twilioApiKey,
twilioApiSecret
).identity(identity).grant(grant).build();
Log.d(TAG,"--Token --"+token.toJwt());
渐变条目
实现'com.twilio.sdk:twilio:7.28.0'
实施“ com.twilio:video-android:3.0.0”
异常是:由以下原因引起:java.lang.ClassNotFoundException:找不到类“ org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl