java.lang.NoClassDefFoundError: Failed resolution of: Ljavax / xml / stream / XMLOutputFactory; Azure

0

I'm taking a picture and then I want to send it to the azure storage however in the following line of code:

CloudStorageAccount account = CloudStorageAccount.parse(storageConnectionString);

I get the following error: java.lang.NoClassDefFoundError: Failed resolution of: Ljavax / xml / stream / XMLOutputFactory;

Has anyone ever had this error or knows how to fix it? I'm trying to do this on Android in Android Studio.

    
asked by anonymous 08.03.2017 / 13:50

1 answer

0

I solved my problem by placing it in gradle

dependencies {
compile 'com.microsoft.azure.android:azure-storage-android:1.0.0@aar'
}
    
08.03.2017 / 19:04