alibaba / freeline

A super fast build tool for Android, an alternative to Instant Run
https://www.freelinebuild.com/
BSD 3-Clause "New" or "Revised" License
5.48k stars 622 forks source link

On Mac M1 ,Newest AndroidStudio "Could not find com.antfortune.freeline:gradle:0.8.8" #1040

Open caojianfeng opened 2 years ago

caojianfeng commented 2 years ago

env:

Android Studio Arctic Fox | 2020.3.1 Patch 2 Build #AI-203.7717.56.2031.7678000, built on August 27, 2021 Runtime version: 11.0.10+0-b96-7249189 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 11.5.1 GC: G1 Young Generation, G1 Old Generation Memory: 1280M Cores: 8 Registry: external.system.auto.import.disabled=true

build

A problem occurred configuring root project 'testfreeline'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not find com.antfortune.freeline:gradle:0.8.8.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/antfortune/freeline/gradle/0.8.8/gradle-0.8.8.pom
       - https://repo.maven.apache.org/maven2/com/antfortune/freeline/gradle/0.8.8/gradle-0.8.8.pom
     Required by:
         project :

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

gradlew initFreeline:

➜  testfreeline git:(master) ✗ ./gradlew initFreeline

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'testfreeline'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not find com.antfortune.freeline:gradle:0.8.8.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/antfortune/freeline/gradle/0.8.8/gradle-0.8.8.pom
       - https://repo.maven.apache.org/maven2/com/antfortune/freeline/gradle/0.8.8/gradle-0.8.8.pom
     Required by:
         project :

* 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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/7.0.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 1s
➜  testfreeline git:(master) ✗ 

demo:

https://github.com/caojianfeng/testfreeline.git

caojianfeng commented 2 years ago

The links return 404: