Unable to get all the sub projects using JitPack - android

I am unable to load all the sub projects of this project: https://github.com/dankito/RichTextEditor
or the from the fork of same https://github.com/tangentq-admin/RichTextEditor
Ideally it should list:
RichTextEditorAndroid
RichTextEditorCommon
RichTextEditorJavaFX
But it loads only: RichTextEditorCommon and RichTextEditorJavaFX. RichTextEditorAndroid is missing.
URL: https://jitpack.io/#tangentq-admin/RichTextEditor/v2.0.15
I don't get what is missing in this subproject that it is not loading.
Thank you!

no need JitPack
test it
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:4.0.0"
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}

Related

Problem after Google Services Version Change

Problem after change from google-services version 4.3.10 to 4.3.14
classpath 'com.google.gms:google-services:4.3.10' -> no problem
classpath 'com.google.gms:google-services:4.3.14' -> build error
build error message :
Execution failed for task ':unityLibrary:processDebugGoogleServices'.
No matching client found for package name 'com.unity3d.player'
//----------------------------
//build.gradle (project : ---)
//----------------------------
allprojects {
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.3.1'
classpath 'com.google.gms:google-services:4.3.10'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.2'
}
}
repositories {
google()
jcenter()
flatDir {
dirs "${project(':unityLibrary').projectDir}/libs"
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
I hope it will be fixed in the next version.thank you.

Where to place maven

Here I am attaching image
I'm trying to place maven here but It's not adding here giving me some error.
here I'm attaching the second image , with Exact Error.enter image description here
Since Android Studio Arctic Fox, it has changed to settings.gradle file:
Please check the project level Gradle file and change accordingly.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.2'
}
}
allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
I hope it's helpful to you!
Go to build.gradle(project) and add
allprojects {
repositories {
maven {
url "https://jitpack.io";
}
}
}
References:
build.gradle(Module)
build.gradle(project)

A problem occurred evaluating root project 'user-auth-retrofit'

I am using "auth-retrofit" and that problem I face it,
and I can't understand where is the problem and why that's my Gradle code and that's the shown error.
"" Build file 'C:\Users\Ammar\AndroidStudioProjects\user-auth-retrofit\build.gradle' line: 7
A problem occurred evaluating root project 'user-auth-retrofit'.Could not find method google() for arguments [] on repository container.""
here's my Build gradle:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
maven { url 'https://maven.google.com' }
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0'
}
}
allprojects {
repositories {
jcenter()
maven { url 'https://maven.google.com' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}

For facebook analytics sdk I am getting this error Can anyone please tell me fast how to solve this?

Error:(12, 0) Could not find method implementation() for arguments [com.facebook.android:facebook-android-sdk:[4,5)] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. Open File
buildscript {
repositories {
google() jcenter() mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1' implementation 'com.facebook.android:facebook-android-sdk:[4,5)'
}
}
allprojects {
repositories { google() jcenter() mavenCentral()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}

Error:(23, 20) Failed to resolve: com.github.chrisbanes:PhotoView:2.1

I want to use PhotoView for zooming in android
https://github.com/chrisbanes/PhotoView
but I'm getting the following error
dependencies {
implementation 'com.github.chrisbanes:PhotoView:2.1.3 '//zoom
implementation 'com.android.support:support-v4:26.0.2 '
}
root level build.gradle
allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
}
}
Make sure, You added this in your root level build.gradle section.
allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}
After that, Clean-Rebuild-Run.
Demo
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
}
}
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
google()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
try to compile with previous dependency version like
implementation 'com.github.chrisbanes:PhotoView:2.0.0'
clean project and rebuild.

Categories

Resources