question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Integrating with Android Java

See original GitHub issue

Unable to add the dependency successfully. I worked with it using kotlin with error but now giving me errors as I want to integrate it to my java base Android App I got errors:

Syn give this error/warnings:

Unable to resolve dependency for ‘:app@debugUnitTest/compileClasspath’: Could not resolve com.github.AppIntro:AppIntro:6.2.0. Show Details Affected Modules: app

##Build apk give these error Unknown host ‘jcenter.bintray.com’. You may need to adjust the proxy settings in Gradle. Learn about configuring HTTP proxies in Gradle

##build.gradle–App grade version is 7.0.4 compileSdkVersion 31 buildToolsVersion “30.0.3” minSdkVersion 19 targetSdkVersion 31

implementation ‘com.github.AppIntro:AppIntro:6.2.0’

##build.gradle–Project

buildscript {
    repositories {
        google()
        jcenter()
        maven { url "https://jitpack.io" }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:7.0.4'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
} 

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
SoftCareTechcommented, Mar 19, 2022

Thanks for the help/time Putting maven { url "https://jitpack.io" } above dependencies resolve my errors. I also change jcenter() to mavenCentral() I go through my kotlin project to see the differences between it and the java project as mentioned earlier there is no difference.

I am really grateful @cortinico

Sample below

repositories { maven { url "https://jitpack.io" } }

dependencies { implementation 'androidx.appcompat:appcompat:1.4.1' implementation 'com.google.android.material:material:1.5.0' implementation 'androidx.constraintlayout:constraintlayout:2.1.3' implementation 'com.google.code.gson:gson:2.8.8' testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' androidTestImplementation 'androidx.test:runner:1.4.0' androidTestImplementation 'androidx.test:rules:1.4.1-alpha04' androidTestImplementation 'androidx.test.espresso:espresso-contrib:3.4.0' implementation 'com.heinrichreimersoftware:material-intro:2.0.0' implementation 'com.github.AppIntro:AppIntro:6.2.0' }

0reactions
cortinicocommented, Mar 19, 2022

Most I use kotlin Id with it? My App is purely java. Implementing it with kotlin App was a single click sth

Java/Kotlin is not an issue. The two languages are fully interchangeable. If you’re using Java, you can still use AppIntro (we have have examples for it).

Your build is broken because it can’t find some libraries.

Please share a minimal reproducer as I can’t help you further.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Integrate asset delivery (Kotlin & Java) - Android Developers
Integrate asset delivery (Kotlin & Java) · On this page · Integrate with the Play Asset Delivery API · Install-time delivery · Fast-follow...
Read more >
How to Integrate Java SDKs for your APIs into Android ...
Option 1: Add Dependency as External JAR · Locate the JAR file in the system. Copy and paste the SDK JAR file in...
Read more >
Start Integrating Google Sign-In into Your Android App
Before you can start integrating Google Sign-In in your own app, you must configure a Google API Console project and set up your...
Read more >
Integrating Google Sign-In in Android App - Javatpoint
MainActivity.java · package gloginexample.example.com; · import android.content.Intent; · import android.support.annotation.NonNull; · import android.support.v7.app ...
Read more >
Integrating Web Services Into Your Android App - YouTube
In this tutorial we demonstrate how to integrate web services into your app. For demonstration purposes, we show how to integrate with a ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found