android 有办法下载mathview作为.jar吗?

xwbd5t1u  于 2023-09-29  发布在  Android
关注(0)|答案(1)|浏览(95)

我想在我的项目中使用MathView来处理数学公式。我试着按照“here”的步骤操作。但出现了这个错误:

"implementation ("io.github.kexanie:MathView:0.5.0")" gives the following error despite adding it to the dependencies: Failed to resolve: io.github.kexanie:MathView:0.5.0
<a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>
Affected Modules: <a href="openFile:C:/Users/user/AndroidStudioProjects/MyApplication3/app/build.gradle.kts">app</a>

我使用的是最新版本的Android Studio 2022.3.1。不知道是不是因为新版本不兼容。我该如何解决这个问题,还有什么可以用的吗?

What I added to the dependencies section:
    
dependencies {

    implementation (fileTree("include: ['*.jar'], dir: 'libs'"))
    implementation ("io.github.kexanie:MathView:0.0.6")
   ...
/* implementation("com.android.support:appcompat-v7:23.0.0")
 I did not use this because I received such a warning:
  Version 28 (intended for Android Pie and below) is the last version of the legacy support library, so we recommend that you migrate to AndroidX libraries when using Android Q and moving forward.*/
}

另外,是否可以将此库作为.jar找到?

v1uwarro

v1uwarro1#

因为.aar文件不能下载,所以你总是可以克隆仓库,在本地构建它,然后将构建工件作为依赖项附加到你的项目。或者,您可以遵循CommonsWare的建议,使用另一个数学库。

相关问题