0

All I have Created My Own Library and I Push That Code in Github, I have Created Library Using JitPack.io but I Face Some Problem When I Call That in My Project Erro is Below :

Error:Could not resolve all files for configuration ':app:debugAndroidTestRuntimeClasspath'.

Could not find NewInstllSDK.jar (com.github.sanjay11MP:NewInstllSDK:1.0.4). Searched in the following locations: https://jitpack.io/com/github/sanjay11MP/NewInstllSDK/1.0.4/NewInstllSDK-1.0.4.jar

also, You Can See My Library Code : https://github.com/sanjay11MP/InstallSDK

and my jitpack log is https://jitpack.io/com/github/sanjay11MP/InstallSDK/1.0.4/build.log

Sanjay
  • 574
  • 6
  • 16

1 Answers1

1

You are using incorrect project structure. Your project structure is a structure inside a module. You need to push the whole library project to github. Your project should be similiar with this:

gradle/wrapper
library
 --- src
 --- .gitignore
 --- build.gradle
 --- proguard-rules.pro
sample
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

Where library is your library module name.

This error:

ERROR: Gradle wrapper not found. Please add. Using default gradle to build.

means that jitpack.io needs a gradle wrapper which is usually inside project folder as above.

ישו אוהב אותך
  • 28,609
  • 11
  • 78
  • 96