noties / Prism4j

Simplified Java clone of prism-js
Apache License 2.0
50 stars 14 forks source link

Execution failed for task ':app:javaPreCompileDebug'. #13

Open AncientTree opened 3 years ago

AncientTree commented 3 years ago

I used Markwon and following error repoted. Any idea? Thanks!

Execution failed for task ':app:javaPreCompileDebug'.
> Could not resolve all files for configuration ':app:debugAnnotationProcessorClasspath'.
   > Could not find prism4j-bundler.jar (io.noties:prism4j-bundler:2.0.0).
     Searched in the following locations:
         http://maven.aliyun.com/nexus/content/repositories/jcenter/io/noties/prism4j-bundler/2.0.0/prism4j-bundler-2.0.0.jar
   > Could not find ixjava.jar (com.github.akarnokd:ixjava:1.0.0).
     Searched in the following locations:
         http://maven.aliyun.com/nexus/content/repositories/jcenter/com/github/akarnokd/ixjava/1.0.0/ixjava-1.0.0.jar
   > Could not find commons-io.jar (commons-io:commons-io:2.6).
     Searched in the following locations:
         http://maven.aliyun.com/nexus/content/repositories/jcenter/commons-io/commons-io/2.6/commons-io-2.6.jar
   > Could not find google-java-format.jar (com.google.googlejavaformat:google-java-format:1.6).
     Searched in the following locations:
         http://maven.aliyun.com/nexus/content/repositories/jcenter/com/google/googlejavaformat/google-java-format/1.6/google-java-format-1.6.jar
   > Could not find guava.jar (com.google.guava:guava:22.0).
     Searched in the following locations:
         http://maven.aliyun.com/nexus/content/repositories/jcenter/com/google/guava/guava/22.0/guava-22.0.jar
   > Could not find javac-shaded.jar (com.google.errorprone:javac-shaded:9+181-r4173-1).
     Searched in the following locations:
         http://maven.aliyun.com/nexus/content/repositories/jcenter/com/google/errorprone/javac-shaded/9+181-r4173-1/javac-shaded-9+181-r4173-1.jar
   > Could not find jsr305.jar (com.google.code.findbugs:jsr305:1.3.9).
     Searched in the following locations:
         http://maven.aliyun.com/nexus/content/repositories/jcenter/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar
   > Could not find error_prone_annotations.jar (com.google.errorprone:error_prone_annotations:2.0.18).
     Searched in the following locations:
         http://maven.aliyun.com/nexus/content/repositories/jcenter/com/google/errorprone/error_prone_annotations/2.0.18/error_prone_annotations-2.0.18.jar
   > Could not find j2objc-annotations.jar (com.google.j2objc:j2objc-annotations:1.1).
     Searched in the following locations:
         http://maven.aliyun.com/nexus/content/repositories/jcenter/com/google/j2objc/j2objc-annotations/1.1/j2objc-annotations-1.1.jar
   > Could not find animal-sniffer-annotations.jar (org.codehaus.mojo:animal-sniffer-annotations:1.14).
     Searched in the following locations:
         http://maven.aliyun.com/nexus/content/repositories/jcenter/org/codehaus/mojo/animal-sniffer-annotations/1.14/animal-sniffer-annotations-1.14.jar

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
dependencies {
    implementation "io.noties.markwon:core:4.3.1"
    implementation "io.noties.markwon:ext-strikethrough:4.3.1"
    implementation "io.noties.markwon:ext-latex:4.3.1"
    implementation "io.noties.markwon:editor:4.3.1"
    implementation "io.noties.markwon:image:4.3.1"
    implementation "io.noties.markwon:html:4.3.1"
    implementation "io.noties.markwon:ext-tasklist:4.3.1"
    implementation "io.noties.markwon:syntax-highlight:4.3.1"
    implementation "io.noties:prism4j:2.0.0"
    annotationProcessor 'io.noties:prism4j-bundler:2.0.0'
}
buildscript {
    repositories {
        maven{ url 'https://maven.aliyun.com/repository/google'}
        google()
        jcenter()
    }
}
allprojects {
    repositories {
        maven{ url 'https://maven.aliyun.com/repository/google'}
        google()
        jcenter()
        mavenCentral()
    }
}