Maven Repository on Github not downloading transitive dependenciesHow can I remove a commit on GitHub?Pull new updates from original GitHub repository into forked GitHub repositoryHow can I determine the URL that a local Git repository was originally cloned from?Is there a way to cache GitHub credentials for pushing commits?Download a single folder or directory from a GitHub repoHow do I update a GitHub forked repository?Add images to README.md on GitHubCreate a tag in a GitHub repositoryHow to display Map on emulatorKotlin fails to compile a library
"You've called the wrong number" or "You called the wrong number"
How can I print the prosodic symbols in LaTeX?
Why do games have consumables?
What term is being referred to with "reflected-sound-of-underground-spirits"?
What is the philosophical significance of speech acts/implicature?
How did Captain America manage to do this?
What is causing the white spot to appear in some of my pictures
Elements other than carbon that can form many different compounds by bonding to themselves?
Don’t seats that recline flat defeat the purpose of having seatbelts?
What does the integral of a function times a function of a random variable represent, conceptually?
Function pointer with named arguments?
can anyone help me with this awful query plan?
Who was the lone kid in the line of people at the lake at the end of Avengers: Endgame?
How to not starve gigantic beasts
Is there really no use for MD5 anymore?
How to denote matrix elements succinctly?
Could the terminal length of components like resistors be reduced?
Are there physical dangers to preparing a prepared piano?
Apply MapThread to all but one variable
Pre-plastic human skin alternative
How can I practically buy stocks?
How come there are so many candidates for the 2020 Democratic party presidential nomination?
"The cow" OR "a cow" OR "cows" in this context
Which big number is bigger?
Maven Repository on Github not downloading transitive dependencies
How can I remove a commit on GitHub?Pull new updates from original GitHub repository into forked GitHub repositoryHow can I determine the URL that a local Git repository was originally cloned from?Is there a way to cache GitHub credentials for pushing commits?Download a single folder or directory from a GitHub repoHow do I update a GitHub forked repository?Add images to README.md on GitHubCreate a tag in a GitHub repositoryHow to display Map on emulatorKotlin fails to compile a library
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I have created a maven repository and uploaded it to Github. When I add it as a dependency to a sample project, the gradle sync completes successfully. But when I try to run the app, it crashes with a java.lang.NoClassDefFoundError.
Link to repository: https://github.com/rjain90/sdk
Sample project code:
Project build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript
ext
kotlin_version = '1.3.20'
realm_version = '5.8.0'
repositories
google()
jcenter()
maven url "https://raw.githubusercontent.com/rjain90/sdk/master/"
dependencies
classpath 'com.android.tools.build:gradle:3.3.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "io.realm:realm-gradle-plugin:$realm_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
allprojects
repositories
google()
jcenter()
maven url "https://raw.githubusercontent.com/rjain90/sdk/master/"
task clean(type: Delete)
delete rootProject.buildDir
ext
lifecycle_version = '2.0.0'
android_support_version = '1.1.0-alpha01'
legacy_support_version = '1.0.0'
constraint_version = '1.1.3'
retrofit_version = '2.4.0'
dagger_version = '2.16'
rxjava_version = '2.1.7'
rxandroid_version = '2.0.1'
Module build.gradle
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: 'realm-android'
// Load keystore
def keystorePropertiesFile = rootProject.file("keystore.properties");
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
android
signingConfigs
release
keyAlias keystoreProperties['ANDROID_KEY_ALIAS']
keyPassword keystoreProperties['ANDROID_KEY_PASSWORD']
storeFile file(keystoreProperties['ANDROID_KEYSTORE_LOCATION'])
storePassword keystoreProperties['ANDROID_STORE_PASSWORD']
compileSdkVersion 28
defaultConfig
applicationId "com.bowstring.godworld"
minSdkVersion 21
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
buildTypes
debug
debuggable true
minifyEnabled false
shrinkResources false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
release
signingConfig signingConfigs.release
debuggable false
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
compileOptions
sourceCompatibility 1.8
targetCompatibility 1.8
dependencies
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "androidx.lifecycle:lifecycle-extensions:$lifecycle_version"
kapt "androidx.lifecycle:lifecycle-compiler:$lifecycle_version"
implementation "androidx.appcompat:appcompat:$android_support_version"
implementation "androidx.constraintlayout:constraintlayout:$constraint_version"
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
implementation "com.squareup.retrofit2:converter-gson:$retrofit_version"
implementation "com.squareup.retrofit2:adapter-rxjava2:$retrofit_version"
implementation "com.google.dagger:dagger:$dagger_version"
kapt "com.google.dagger:dagger-compiler:$dagger_version"
implementation "io.reactivex.rxjava2:rxandroid:$rxandroid_version"
implementation "androidx.legacy:legacy-support-v4:$legacy_support_version"
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.0-alpha4'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha4'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.cabfare.android:sdk:0.0.18@aar'
android maven github aar transitive-dependency
|
show 2 more comments
I have created a maven repository and uploaded it to Github. When I add it as a dependency to a sample project, the gradle sync completes successfully. But when I try to run the app, it crashes with a java.lang.NoClassDefFoundError.
Link to repository: https://github.com/rjain90/sdk
Sample project code:
Project build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript
ext
kotlin_version = '1.3.20'
realm_version = '5.8.0'
repositories
google()
jcenter()
maven url "https://raw.githubusercontent.com/rjain90/sdk/master/"
dependencies
classpath 'com.android.tools.build:gradle:3.3.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "io.realm:realm-gradle-plugin:$realm_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
allprojects
repositories
google()
jcenter()
maven url "https://raw.githubusercontent.com/rjain90/sdk/master/"
task clean(type: Delete)
delete rootProject.buildDir
ext
lifecycle_version = '2.0.0'
android_support_version = '1.1.0-alpha01'
legacy_support_version = '1.0.0'
constraint_version = '1.1.3'
retrofit_version = '2.4.0'
dagger_version = '2.16'
rxjava_version = '2.1.7'
rxandroid_version = '2.0.1'
Module build.gradle
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: 'realm-android'
// Load keystore
def keystorePropertiesFile = rootProject.file("keystore.properties");
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
android
signingConfigs
release
keyAlias keystoreProperties['ANDROID_KEY_ALIAS']
keyPassword keystoreProperties['ANDROID_KEY_PASSWORD']
storeFile file(keystoreProperties['ANDROID_KEYSTORE_LOCATION'])
storePassword keystoreProperties['ANDROID_STORE_PASSWORD']
compileSdkVersion 28
defaultConfig
applicationId "com.bowstring.godworld"
minSdkVersion 21
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
buildTypes
debug
debuggable true
minifyEnabled false
shrinkResources false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
release
signingConfig signingConfigs.release
debuggable false
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
compileOptions
sourceCompatibility 1.8
targetCompatibility 1.8
dependencies
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "androidx.lifecycle:lifecycle-extensions:$lifecycle_version"
kapt "androidx.lifecycle:lifecycle-compiler:$lifecycle_version"
implementation "androidx.appcompat:appcompat:$android_support_version"
implementation "androidx.constraintlayout:constraintlayout:$constraint_version"
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
implementation "com.squareup.retrofit2:converter-gson:$retrofit_version"
implementation "com.squareup.retrofit2:adapter-rxjava2:$retrofit_version"
implementation "com.google.dagger:dagger:$dagger_version"
kapt "com.google.dagger:dagger-compiler:$dagger_version"
implementation "io.reactivex.rxjava2:rxandroid:$rxandroid_version"
implementation "androidx.legacy:legacy-support-v4:$legacy_support_version"
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.0-alpha4'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha4'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.cabfare.android:sdk:0.0.18@aar'
android maven github aar transitive-dependency
1
Why do you adding your "repository" (even, maybe not a repository) at therepository
section? What you need may be a jitpack.io.
– Geno Chen
Mar 11 at 9:56
@GenoChen I tried using Jitpack but ran into the same problem
– Rishabh Jain
Mar 11 at 17:53
What is theNoClassDefError
generated for? For your library?
– Geno Chen
Mar 11 at 17:55
Besides, "the same problem" may even not precise: Maybe throwing for different place.
– Geno Chen
Mar 12 at 3:26
The error is the same in all cases: NoClassDefFoundError: Failed resolution of: Lokhttp3/internal/Platform
– Rishabh Jain
Mar 12 at 8:03
|
show 2 more comments
I have created a maven repository and uploaded it to Github. When I add it as a dependency to a sample project, the gradle sync completes successfully. But when I try to run the app, it crashes with a java.lang.NoClassDefFoundError.
Link to repository: https://github.com/rjain90/sdk
Sample project code:
Project build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript
ext
kotlin_version = '1.3.20'
realm_version = '5.8.0'
repositories
google()
jcenter()
maven url "https://raw.githubusercontent.com/rjain90/sdk/master/"
dependencies
classpath 'com.android.tools.build:gradle:3.3.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "io.realm:realm-gradle-plugin:$realm_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
allprojects
repositories
google()
jcenter()
maven url "https://raw.githubusercontent.com/rjain90/sdk/master/"
task clean(type: Delete)
delete rootProject.buildDir
ext
lifecycle_version = '2.0.0'
android_support_version = '1.1.0-alpha01'
legacy_support_version = '1.0.0'
constraint_version = '1.1.3'
retrofit_version = '2.4.0'
dagger_version = '2.16'
rxjava_version = '2.1.7'
rxandroid_version = '2.0.1'
Module build.gradle
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: 'realm-android'
// Load keystore
def keystorePropertiesFile = rootProject.file("keystore.properties");
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
android
signingConfigs
release
keyAlias keystoreProperties['ANDROID_KEY_ALIAS']
keyPassword keystoreProperties['ANDROID_KEY_PASSWORD']
storeFile file(keystoreProperties['ANDROID_KEYSTORE_LOCATION'])
storePassword keystoreProperties['ANDROID_STORE_PASSWORD']
compileSdkVersion 28
defaultConfig
applicationId "com.bowstring.godworld"
minSdkVersion 21
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
buildTypes
debug
debuggable true
minifyEnabled false
shrinkResources false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
release
signingConfig signingConfigs.release
debuggable false
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
compileOptions
sourceCompatibility 1.8
targetCompatibility 1.8
dependencies
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "androidx.lifecycle:lifecycle-extensions:$lifecycle_version"
kapt "androidx.lifecycle:lifecycle-compiler:$lifecycle_version"
implementation "androidx.appcompat:appcompat:$android_support_version"
implementation "androidx.constraintlayout:constraintlayout:$constraint_version"
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
implementation "com.squareup.retrofit2:converter-gson:$retrofit_version"
implementation "com.squareup.retrofit2:adapter-rxjava2:$retrofit_version"
implementation "com.google.dagger:dagger:$dagger_version"
kapt "com.google.dagger:dagger-compiler:$dagger_version"
implementation "io.reactivex.rxjava2:rxandroid:$rxandroid_version"
implementation "androidx.legacy:legacy-support-v4:$legacy_support_version"
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.0-alpha4'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha4'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.cabfare.android:sdk:0.0.18@aar'
android maven github aar transitive-dependency
I have created a maven repository and uploaded it to Github. When I add it as a dependency to a sample project, the gradle sync completes successfully. But when I try to run the app, it crashes with a java.lang.NoClassDefFoundError.
Link to repository: https://github.com/rjain90/sdk
Sample project code:
Project build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript
ext
kotlin_version = '1.3.20'
realm_version = '5.8.0'
repositories
google()
jcenter()
maven url "https://raw.githubusercontent.com/rjain90/sdk/master/"
dependencies
classpath 'com.android.tools.build:gradle:3.3.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "io.realm:realm-gradle-plugin:$realm_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
allprojects
repositories
google()
jcenter()
maven url "https://raw.githubusercontent.com/rjain90/sdk/master/"
task clean(type: Delete)
delete rootProject.buildDir
ext
lifecycle_version = '2.0.0'
android_support_version = '1.1.0-alpha01'
legacy_support_version = '1.0.0'
constraint_version = '1.1.3'
retrofit_version = '2.4.0'
dagger_version = '2.16'
rxjava_version = '2.1.7'
rxandroid_version = '2.0.1'
Module build.gradle
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: 'realm-android'
// Load keystore
def keystorePropertiesFile = rootProject.file("keystore.properties");
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
android
signingConfigs
release
keyAlias keystoreProperties['ANDROID_KEY_ALIAS']
keyPassword keystoreProperties['ANDROID_KEY_PASSWORD']
storeFile file(keystoreProperties['ANDROID_KEYSTORE_LOCATION'])
storePassword keystoreProperties['ANDROID_STORE_PASSWORD']
compileSdkVersion 28
defaultConfig
applicationId "com.bowstring.godworld"
minSdkVersion 21
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
buildTypes
debug
debuggable true
minifyEnabled false
shrinkResources false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
release
signingConfig signingConfigs.release
debuggable false
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
compileOptions
sourceCompatibility 1.8
targetCompatibility 1.8
dependencies
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "androidx.lifecycle:lifecycle-extensions:$lifecycle_version"
kapt "androidx.lifecycle:lifecycle-compiler:$lifecycle_version"
implementation "androidx.appcompat:appcompat:$android_support_version"
implementation "androidx.constraintlayout:constraintlayout:$constraint_version"
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
implementation "com.squareup.retrofit2:converter-gson:$retrofit_version"
implementation "com.squareup.retrofit2:adapter-rxjava2:$retrofit_version"
implementation "com.google.dagger:dagger:$dagger_version"
kapt "com.google.dagger:dagger-compiler:$dagger_version"
implementation "io.reactivex.rxjava2:rxandroid:$rxandroid_version"
implementation "androidx.legacy:legacy-support-v4:$legacy_support_version"
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.0-alpha4'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha4'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.cabfare.android:sdk:0.0.18@aar'
android maven github aar transitive-dependency
android maven github aar transitive-dependency
asked Mar 9 at 8:40
Rishabh JainRishabh Jain
14610
14610
1
Why do you adding your "repository" (even, maybe not a repository) at therepository
section? What you need may be a jitpack.io.
– Geno Chen
Mar 11 at 9:56
@GenoChen I tried using Jitpack but ran into the same problem
– Rishabh Jain
Mar 11 at 17:53
What is theNoClassDefError
generated for? For your library?
– Geno Chen
Mar 11 at 17:55
Besides, "the same problem" may even not precise: Maybe throwing for different place.
– Geno Chen
Mar 12 at 3:26
The error is the same in all cases: NoClassDefFoundError: Failed resolution of: Lokhttp3/internal/Platform
– Rishabh Jain
Mar 12 at 8:03
|
show 2 more comments
1
Why do you adding your "repository" (even, maybe not a repository) at therepository
section? What you need may be a jitpack.io.
– Geno Chen
Mar 11 at 9:56
@GenoChen I tried using Jitpack but ran into the same problem
– Rishabh Jain
Mar 11 at 17:53
What is theNoClassDefError
generated for? For your library?
– Geno Chen
Mar 11 at 17:55
Besides, "the same problem" may even not precise: Maybe throwing for different place.
– Geno Chen
Mar 12 at 3:26
The error is the same in all cases: NoClassDefFoundError: Failed resolution of: Lokhttp3/internal/Platform
– Rishabh Jain
Mar 12 at 8:03
1
1
Why do you adding your "repository" (even, maybe not a repository) at the
repository
section? What you need may be a jitpack.io.– Geno Chen
Mar 11 at 9:56
Why do you adding your "repository" (even, maybe not a repository) at the
repository
section? What you need may be a jitpack.io.– Geno Chen
Mar 11 at 9:56
@GenoChen I tried using Jitpack but ran into the same problem
– Rishabh Jain
Mar 11 at 17:53
@GenoChen I tried using Jitpack but ran into the same problem
– Rishabh Jain
Mar 11 at 17:53
What is the
NoClassDefError
generated for? For your library?– Geno Chen
Mar 11 at 17:55
What is the
NoClassDefError
generated for? For your library?– Geno Chen
Mar 11 at 17:55
Besides, "the same problem" may even not precise: Maybe throwing for different place.
– Geno Chen
Mar 12 at 3:26
Besides, "the same problem" may even not precise: Maybe throwing for different place.
– Geno Chen
Mar 12 at 3:26
The error is the same in all cases: NoClassDefFoundError: Failed resolution of: Lokhttp3/internal/Platform
– Rishabh Jain
Mar 12 at 8:03
The error is the same in all cases: NoClassDefFoundError: Failed resolution of: Lokhttp3/internal/Platform
– Rishabh Jain
Mar 12 at 8:03
|
show 2 more comments
1 Answer
1
active
oldest
votes
For GitHub hosted, you can use https://jitpack.io as a Maven repository.
Add maven url 'https://jitpack.io'
into the project build.gradle
's allprojects -> repositories
block, then in your module build.gradle
, add a dependency implementation 'com.github.rjain90:sdk:0.0.17'
, for example.
However, your two releases are both containing build errors. Solve them first.
I've removed the errors and tried again with Jitpack but it still doesn't work.
– Rishabh Jain
Mar 13 at 10:08
@RishabhJain Did you "doesn't work" withERROR: Failed to resolve: Android-SDK-Core-Source:coresdk:unspecified
?
– Geno Chen
Mar 13 at 10:53
Yes and I tried to resolve it by using implementation 'com.github.rjain90:sdk:0.0.17@aar' but ran into the NoClassDefFoundError again
– Rishabh Jain
Mar 14 at 8:27
Yes. You can useimplementation 'com.github.rjain90:sdk:1.0'
, then you will found your SDK has the dependencycom.estimote:sdk:1.0.3
which depends onAndroid-SDK-Core-Source:coresdk:unspecified
which throws the error. After you found where theAndroid-SDK-Core-Source:coresdk:unspecified
is, the question is solved.
– Geno Chen
Mar 14 at 15:29
As of my search, "All the proximity monitoring features of this SDK have been deprecated and are no longer supported. Instead, we strongly recommend Estimote Proximity SDK for Android powered by Estimote Monitoring. ", which have no dependency problems as of the Maven said.
– Geno Chen
Mar 14 at 16:01
|
show 4 more comments
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55075515%2fmaven-repository-on-github-not-downloading-transitive-dependencies%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
For GitHub hosted, you can use https://jitpack.io as a Maven repository.
Add maven url 'https://jitpack.io'
into the project build.gradle
's allprojects -> repositories
block, then in your module build.gradle
, add a dependency implementation 'com.github.rjain90:sdk:0.0.17'
, for example.
However, your two releases are both containing build errors. Solve them first.
I've removed the errors and tried again with Jitpack but it still doesn't work.
– Rishabh Jain
Mar 13 at 10:08
@RishabhJain Did you "doesn't work" withERROR: Failed to resolve: Android-SDK-Core-Source:coresdk:unspecified
?
– Geno Chen
Mar 13 at 10:53
Yes and I tried to resolve it by using implementation 'com.github.rjain90:sdk:0.0.17@aar' but ran into the NoClassDefFoundError again
– Rishabh Jain
Mar 14 at 8:27
Yes. You can useimplementation 'com.github.rjain90:sdk:1.0'
, then you will found your SDK has the dependencycom.estimote:sdk:1.0.3
which depends onAndroid-SDK-Core-Source:coresdk:unspecified
which throws the error. After you found where theAndroid-SDK-Core-Source:coresdk:unspecified
is, the question is solved.
– Geno Chen
Mar 14 at 15:29
As of my search, "All the proximity monitoring features of this SDK have been deprecated and are no longer supported. Instead, we strongly recommend Estimote Proximity SDK for Android powered by Estimote Monitoring. ", which have no dependency problems as of the Maven said.
– Geno Chen
Mar 14 at 16:01
|
show 4 more comments
For GitHub hosted, you can use https://jitpack.io as a Maven repository.
Add maven url 'https://jitpack.io'
into the project build.gradle
's allprojects -> repositories
block, then in your module build.gradle
, add a dependency implementation 'com.github.rjain90:sdk:0.0.17'
, for example.
However, your two releases are both containing build errors. Solve them first.
I've removed the errors and tried again with Jitpack but it still doesn't work.
– Rishabh Jain
Mar 13 at 10:08
@RishabhJain Did you "doesn't work" withERROR: Failed to resolve: Android-SDK-Core-Source:coresdk:unspecified
?
– Geno Chen
Mar 13 at 10:53
Yes and I tried to resolve it by using implementation 'com.github.rjain90:sdk:0.0.17@aar' but ran into the NoClassDefFoundError again
– Rishabh Jain
Mar 14 at 8:27
Yes. You can useimplementation 'com.github.rjain90:sdk:1.0'
, then you will found your SDK has the dependencycom.estimote:sdk:1.0.3
which depends onAndroid-SDK-Core-Source:coresdk:unspecified
which throws the error. After you found where theAndroid-SDK-Core-Source:coresdk:unspecified
is, the question is solved.
– Geno Chen
Mar 14 at 15:29
As of my search, "All the proximity monitoring features of this SDK have been deprecated and are no longer supported. Instead, we strongly recommend Estimote Proximity SDK for Android powered by Estimote Monitoring. ", which have no dependency problems as of the Maven said.
– Geno Chen
Mar 14 at 16:01
|
show 4 more comments
For GitHub hosted, you can use https://jitpack.io as a Maven repository.
Add maven url 'https://jitpack.io'
into the project build.gradle
's allprojects -> repositories
block, then in your module build.gradle
, add a dependency implementation 'com.github.rjain90:sdk:0.0.17'
, for example.
However, your two releases are both containing build errors. Solve them first.
For GitHub hosted, you can use https://jitpack.io as a Maven repository.
Add maven url 'https://jitpack.io'
into the project build.gradle
's allprojects -> repositories
block, then in your module build.gradle
, add a dependency implementation 'com.github.rjain90:sdk:0.0.17'
, for example.
However, your two releases are both containing build errors. Solve them first.
answered Mar 12 at 12:02
Geno ChenGeno Chen
2,81561125
2,81561125
I've removed the errors and tried again with Jitpack but it still doesn't work.
– Rishabh Jain
Mar 13 at 10:08
@RishabhJain Did you "doesn't work" withERROR: Failed to resolve: Android-SDK-Core-Source:coresdk:unspecified
?
– Geno Chen
Mar 13 at 10:53
Yes and I tried to resolve it by using implementation 'com.github.rjain90:sdk:0.0.17@aar' but ran into the NoClassDefFoundError again
– Rishabh Jain
Mar 14 at 8:27
Yes. You can useimplementation 'com.github.rjain90:sdk:1.0'
, then you will found your SDK has the dependencycom.estimote:sdk:1.0.3
which depends onAndroid-SDK-Core-Source:coresdk:unspecified
which throws the error. After you found where theAndroid-SDK-Core-Source:coresdk:unspecified
is, the question is solved.
– Geno Chen
Mar 14 at 15:29
As of my search, "All the proximity monitoring features of this SDK have been deprecated and are no longer supported. Instead, we strongly recommend Estimote Proximity SDK for Android powered by Estimote Monitoring. ", which have no dependency problems as of the Maven said.
– Geno Chen
Mar 14 at 16:01
|
show 4 more comments
I've removed the errors and tried again with Jitpack but it still doesn't work.
– Rishabh Jain
Mar 13 at 10:08
@RishabhJain Did you "doesn't work" withERROR: Failed to resolve: Android-SDK-Core-Source:coresdk:unspecified
?
– Geno Chen
Mar 13 at 10:53
Yes and I tried to resolve it by using implementation 'com.github.rjain90:sdk:0.0.17@aar' but ran into the NoClassDefFoundError again
– Rishabh Jain
Mar 14 at 8:27
Yes. You can useimplementation 'com.github.rjain90:sdk:1.0'
, then you will found your SDK has the dependencycom.estimote:sdk:1.0.3
which depends onAndroid-SDK-Core-Source:coresdk:unspecified
which throws the error. After you found where theAndroid-SDK-Core-Source:coresdk:unspecified
is, the question is solved.
– Geno Chen
Mar 14 at 15:29
As of my search, "All the proximity monitoring features of this SDK have been deprecated and are no longer supported. Instead, we strongly recommend Estimote Proximity SDK for Android powered by Estimote Monitoring. ", which have no dependency problems as of the Maven said.
– Geno Chen
Mar 14 at 16:01
I've removed the errors and tried again with Jitpack but it still doesn't work.
– Rishabh Jain
Mar 13 at 10:08
I've removed the errors and tried again with Jitpack but it still doesn't work.
– Rishabh Jain
Mar 13 at 10:08
@RishabhJain Did you "doesn't work" with
ERROR: Failed to resolve: Android-SDK-Core-Source:coresdk:unspecified
?– Geno Chen
Mar 13 at 10:53
@RishabhJain Did you "doesn't work" with
ERROR: Failed to resolve: Android-SDK-Core-Source:coresdk:unspecified
?– Geno Chen
Mar 13 at 10:53
Yes and I tried to resolve it by using implementation 'com.github.rjain90:sdk:0.0.17@aar' but ran into the NoClassDefFoundError again
– Rishabh Jain
Mar 14 at 8:27
Yes and I tried to resolve it by using implementation 'com.github.rjain90:sdk:0.0.17@aar' but ran into the NoClassDefFoundError again
– Rishabh Jain
Mar 14 at 8:27
Yes. You can use
implementation 'com.github.rjain90:sdk:1.0'
, then you will found your SDK has the dependency com.estimote:sdk:1.0.3
which depends on Android-SDK-Core-Source:coresdk:unspecified
which throws the error. After you found where the Android-SDK-Core-Source:coresdk:unspecified
is, the question is solved.– Geno Chen
Mar 14 at 15:29
Yes. You can use
implementation 'com.github.rjain90:sdk:1.0'
, then you will found your SDK has the dependency com.estimote:sdk:1.0.3
which depends on Android-SDK-Core-Source:coresdk:unspecified
which throws the error. After you found where the Android-SDK-Core-Source:coresdk:unspecified
is, the question is solved.– Geno Chen
Mar 14 at 15:29
As of my search, "All the proximity monitoring features of this SDK have been deprecated and are no longer supported. Instead, we strongly recommend Estimote Proximity SDK for Android powered by Estimote Monitoring. ", which have no dependency problems as of the Maven said.
– Geno Chen
Mar 14 at 16:01
As of my search, "All the proximity monitoring features of this SDK have been deprecated and are no longer supported. Instead, we strongly recommend Estimote Proximity SDK for Android powered by Estimote Monitoring. ", which have no dependency problems as of the Maven said.
– Geno Chen
Mar 14 at 16:01
|
show 4 more comments
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55075515%2fmaven-repository-on-github-not-downloading-transitive-dependencies%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Why do you adding your "repository" (even, maybe not a repository) at the
repository
section? What you need may be a jitpack.io.– Geno Chen
Mar 11 at 9:56
@GenoChen I tried using Jitpack but ran into the same problem
– Rishabh Jain
Mar 11 at 17:53
What is the
NoClassDefError
generated for? For your library?– Geno Chen
Mar 11 at 17:55
Besides, "the same problem" may even not precise: Maybe throwing for different place.
– Geno Chen
Mar 12 at 3:26
The error is the same in all cases: NoClassDefFoundError: Failed resolution of: Lokhttp3/internal/Platform
– Rishabh Jain
Mar 12 at 8:03