Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to resolve: io.ktor:ktor-network:3.0.1-PYAMSOFT #348

Closed
douglasNordenstedt opened this issue Nov 4, 2024 · 2 comments
Closed

Failed to resolve: io.ktor:ktor-network:3.0.1-PYAMSOFT #348

douglasNordenstedt opened this issue Nov 4, 2024 · 2 comments
Labels
documentation Improvements or additions to documentation question Further information is requested

Comments

@douglasNordenstedt
Copy link

Im trying to run the source code in android studio but it seems to have failed to download some of the dependencies?

This is the log from the build:

Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find io.ktor:ktor-network:3.0.1-PYAMSOFT.
Searched in the following locations:

@pyamsoft
Copy link
Owner

pyamsoft commented Nov 4, 2024

Hi

The project uses a custom fork of ktor that you'll also need to build.

You can find the ktor fork in my repositories.

@pyamsoft pyamsoft added documentation Improvements or additions to documentation question Further information is requested labels Nov 4, 2024
@pyamsoft pyamsoft pinned this issue Nov 6, 2024
@pyamsoft pyamsoft closed this as completed Nov 6, 2024
@brlin-tw
Copy link
Contributor

brlin-tw commented Nov 6, 2024

Some notes of rebuilding ktor for use in TetherFi

You may not need to unless you need the preferred network feature.

Avoid building ktor directly in Android Studio(unless you know how to correctly do it), the project targets multiple platforms(Android, iOS(tvos, watchos, etc...), Kotlin, Linux, Windows...) and is very large, and most of them aren't really used in TetherFi, dependency resolution for all the build targets takes forever(>2hr) at my end and should be avoided.

The process in general would be:

  1. Install Gradle(the one provided by Ubuntu 24.04 works), OpenJDK, Git, and other build dependencies of ktor.
  2. Clone a copy of the pyamsoft/ktor Git repository.
  3. Launch a text terminal.
  4. Change the working directory to the local ktor source tree.
  5. Run the following commands to build and publish the packages to the local Maven repository:
    • ./gradlew publishKotlinMultiplatformPublicationToMavenLocal
    • ./gradlew publishJvmPublicationToMavenLocal
  6. Verifies files are published in the ~/.m2/repository/ directory.
  7. Build TetherFi as usual.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants