DexPatcher / dexpatcher-gradle

Modify Android applications at source-level in Android Studio
https://dexpatcher.github.io/
GNU General Public License v3.0
83 stars 17 forks source link

Can't run patched-app, "undeclared repository artifact" #39

Open scirpter opened 2 years ago

scirpter commented 2 years ago

The error

A problem occurred configuring root project 'patched-app'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not find com.github.lanchon.dexpatcher:dexpatcher-gradle:2.1.3.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/github/lanchon/dexpatcher/dexpatcher-gradle/2.1.3/dexpatcher-gradle-2.1.3.pom
       - https://jcenter.bintray.com/com/github/lanchon/dexpatcher/dexpatcher-gradle/2.1.3/dexpatcher-gradle-2.1.3.pom
       - https://plugins.gradle.org/m2/com/github/lanchon/dexpatcher/dexpatcher-gradle/2.1.3/dexpatcher-gradle-2.1.3.pom
       - file:/C:/Users/0/Desktop/dexpatcher-gradle/build/libs/dexpatcher-gradle-2.1.3.jar
       - file:/C:/Users/0/Desktop/dexpatcher-gradle/build/libs/dexpatcher-gradle.jar
     Required by:
         project :

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

Steps to reproduce

  1. Install latest Android Studio version (Windows 10)
  2. Clone https://github.com/DexPatcher/dexpatcher-gradle-samples
  3. Open "patched-app" project with Android Studio
  4. Running the app

What i've tried to fix this