Due to the inability to find com.mapbox.mapboxsdk:mapbox-android-accounts:0.7.0 in JCenter, the sample code for MSDK V5 encounters the error mentioned in the title during compilation.
As a temporary solution, developers can add the following mirror addresses in allprojects.
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://repo.huaweicloud.com/repository/maven'}
Comments
1 comment
Adding these three lines still leads to
e: C:\s\android\Mobile-SDK-Android-V5-5.10.0\SampleCode-V5\android-sdk-v5-sample\src\main\java\dji\sampleV5\aircraft\AircraftMSDKInfoFragment.kt: (24, 33): Unresolved reference: R
//and yes, I have these lines in gradle.properties:
Cloning the current version 5.12 directly from github worked fine all the way to building the sample project though, and it runs fine as well.
Please sign in to leave a comment.