How to build the library and run a project?
See original GitHub issueI 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:
- Created 5 years ago
- Comments:7
Top GitHub Comments
You can get it right now using jitpack. Follow instructions at the link and use the
master
branch 🗡Thanks, @SleeplessByte.