Skip to content

Instantly share code, notes, and snippets.

@ChuckieChen945
Created December 26, 2023 11:00
Show Gist options
  • Save ChuckieChen945/b3901734d28b1be5b3a35d68b7bd498b to your computer and use it in GitHub Desktop.
Save ChuckieChen945/b3901734d28b1be5b3a35d68b7bd498b to your computer and use it in GitHub Desktop.
用 Android Studio 编译 AnkiReview

用Android Studio编译AnkiReview项目

  • 设置Android SDK为API 28(pi,Android 9.0)
  • 用AGP Upgrade Assistant 将AGP版本升级为7.2.0
  • 注释掉一些因升级导致的无效的包
  • 注释掉apply plugin: 'com.google.gms.google-services'
  • 为Gradle设置代理
  • 为build.gradle中所有Maven仓库添加“allowInsecureProtocol = true”
      repositories {
          maven { 
              allowInsecureProtocol = true
          }
      }
    
    
  • 下述仓库失效了,注释掉
    //        maven {
    //            url 'https://maven.google.com/'
    //            allowInsecureProtocol = true
    //        }
    
  • 下载设备img等
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment