在mapbox的navigationview.class中下载源代码失败

zdwk9cvp  于 2021-08-25  发布在  Java
关注(0)|答案(0)|浏览(327)

我正在开发一个android studio应用程序,使用mapbox进行导航。
我的问题是无法获得navigationview的源代码。我的意思是,我没有使用navigationview.java,而是使用navigationview.class,在顶部显示以下消息:
反编译的.class文件,字节码版本52.0(Java8)。
使用下载源和选择源的选项。
当我选择下载源选项时,出现以下错误:

Executing tasks: [DownloadSources] in project /****/****/****/****/****/****

> Task :app:DownloadSources FAILED
1 actionable task: 1 executed

FAILURE: Build failed with an exception.

* Where:

Initialization script '/private/var/folders/8m/x8f28hgx685g1cm7zy_dxbbr0000gn/T/ijmiscinit12.gradle' line: 20

* What went wrong:

Execution failed for task ':app:DownloadSources'.
> Could not resolve all files for configuration ':app:downloadSources_fef929a7-720c-4d1b-b94c-6ee7e6d79f4e'.
   > Could not find com.mapbox.navigation:ui:1.1.0@aar.
     Required by:
         project :app

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 2s
09:48:57: Task execution finished 'DownloadSources'.

我找到了一个名为gradle__com_mapbox_navigation_ui_1_1_0_aar.xml的文件,其中包含以下内容:

<component name="libraryTable">
  <library name="Gradle: com.mapbox.navigation:ui:1.1.0@aar">
    <ANNOTATIONS>
      <root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/09d0a3f42eee3febfeeeadbf29393b00/jetified-ui-1.1.0/annotations.zip!/" />
    </ANNOTATIONS>
    <CLASSES>
      <root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/09d0a3f42eee3febfeeeadbf29393b00/jetified-ui-1.1.0/jars/classes.jar!/" />
      <root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/09d0a3f42eee3febfeeeadbf29393b00/jetified-ui-1.1.0/res" />
      <root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/09d0a3f42eee3febfeeeadbf29393b00/jetified-ui-1.1.0/AndroidManifest.xml" />
    </CLASSES>
    <JAVADOC>
      <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.mapbox.navigation/ui/1.1.0/278b275febb40248321f9ae7b692058a8f20f83/ui-1.1.0-javadoc.jar!/" />
    </JAVADOC>
    <SOURCES>
      <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.mapbox.navigation/ui/1.1.0/d7e5086784e491b7cf5fe84f4a0320edbbca9f7d/ui-1.1.0-sources.jar!/" />
    </SOURCES>
  </library>
</component>

我意识到这一点
library name=“gradle:com.mapbox.navigation:ui:1.1。0@aar"
这就是问题所在。我怎样才能解决这个问题?
pd:我试过选择源代码并选择源文件,但没有任何效果。
pd 2:在我的构建中,我使用的是gradle implementation 'com.mapbox.navigation:ui:1.1.0' 谢谢!:)

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题