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.

How to build the library and run a project?

See original GitHub issue

I cloned the repository, switched to master, added local.properties to the folder (with an SDK path). Then run gradlew build. After several minutes build has been done with several messages:

Task :fuel-android:lint Ran lint on variant debug: 0 issues found Ran lint on variant release: 0 issues found w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath: C:/Users/user/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-reflect/1.2.51/36b719a7b84452dd13eeec979d8c82bfb765c57d/kotlin-reflect-1.2.51.jar (version 1.2) C:/Users/user/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.3.11/4cbc5922a54376018307a731162ccaf3ef851a39/kotlin-stdlib-1.3.11.jar (version 1.3) C:/Users/user/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.3.11/d8b8e746e279f1c4f5e08bc14a96b82e6bb1de02/kotlin-stdlib-common-1.3.11.jar (version 1.3) w: Consider providing an explicit dependency on kotlin-reflect 1.3 to prevent strange errors w: Some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath: C:/Users/user/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-reflect/1.2.51/36b719a7b84452dd13eeec979d8c82bfb765c57d/kotlin-reflect-1.2.51.jar (version 1.2) C:/Users/user/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.3.11/4cbc5922a54376018307a731162ccaf3ef851a39/kotlin-stdlib-1.3.11.jar (version 1.3) C:/Users/user/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.3.11/d8b8e746e279f1c4f5e08bc14a96b82e6bb1de02/kotlin-stdlib-common-1.3.11.jar (version 1.3) w: Consider providing an explicit dependency on kotlin-reflect 1.3 to prevent strange errors w: Some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath

Task :fuel-livedata:lint Ran lint on variant debug: 0 issues found Ran lint on variant release: 0 issues found w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath: C:/Users/user/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-reflect/1.2.51/36b719a7b84452dd13eeec979d8c82bfb765c57d/kotlin-reflect-1.2.51.jar (version 1.2) C:/Users/user/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.3.11/4cbc5922a54376018307a731162ccaf3ef851a39/kotlin-stdlib-1.3.11.jar (version 1.3) C:/Users/user/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.3.11/d8b8e746e279f1c4f5e08bc14a96b82e6bb1de02/kotlin-stdlib-common-1.3.11.jar (version 1.3) w: Consider providing an explicit dependency on kotlin-reflect 1.3 to prevent strange errors w: Some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath

Task :sample:lint Ran lint on variant debug: 10 issues found Ran lint on variant release: 10 issues found Wrote HTML report to file:///C:/Users/user/AndroidStudioProjects/Fuel/sample/build/reports/lint-results.html Wrote XML report to file:///C:/Users/user/AndroidStudioProjects/Fuel/sample/build/reports/lint-results.xm

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. Use ‘–warning-mode all’ to show the individual deprecation warnings. See https://docs.gradle.org/4.10/userguide/command_line_interface.html#sec:command_line_warnings

So, in build\libs subfolders of many packages I could see files like fuel-1.16.0.jar. But in fuel-android, fuel-livedata, sample they didn’t appear. I got needed files and put in app\libs of my Android project. Then in app\build.gradle removed old libraries and added implementation fileTree(dir: 'libs', include: ['*.jar']). After compiling I got these errors:

… AutoInteractorImpl.kt: (16, 9): Type mismatch: inferred type is AutoIndexResponse but Result<AutoIndexResponse, FuelError> was expected … LocationUseCaseImpl.kt: (3, 8): Unresolved reference: awaitObjectResponse … ApiImpl.kt: (51, 25): Type mismatch: inferred type is Method but Parameters? /* = List<Pair<String, Any?>>? */ was expected … ApiImpl.kt: (52, 41): Sealed types cannot be instantiated

And so on. When will 2.0.0 appear?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
SleeplessBytecommented, Jan 17, 2019

You can get it right now using jitpack. Follow instructions at the link and use the master branch 🗡

0reactions
CoolMindcommented, Jan 18, 2019

Thanks, @SleeplessByte.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to create a library project and use it in executable project
In Project Settings under Code->Build->Project Dependencies set the executable project to be dependent of the library project. This ensures that ...
Read more >
Building Java Libraries Sample - Gradle User Manual
What you'll build; What you'll need; Create a project folder; Run the init task; Review the project files; Assemble the library JAR; Customize...
Read more >
Create an Android library - Android Developers
Navigate to File > Project Structure > Dependencies. · Select the Module in which you'll use the library. · In the Declared Dependencies...
Read more >
Building a library - GNAT User's Guide
The easiest way to build a library is to use the Project Manager, which supports a special type of project called a Library...
Read more >
How to Build Your Revit Library from Ongoing Projects
Firms have given us many different answers for why their Revit library isn't as large or organized as they would like.
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