исправь ошибку FATAL EXCEPTION: DefaultDispatcher-worker-1
                                                                                                    Process: com.example.getfile, PID: 7329
                                                                                                    io.netty.channel.ChannelException: Unable to create Channel from class class io.netty.channel.socket.nio.NioServerSocketChannel
                                                                                                    	at io.netty.channel.ReflectiveChannelFactory.newChannel(ReflectiveChannelFactory.java:46)
                                                                                                    	at io.netty.bootstrap.AbstractBootstrap.initAndRegister(AbstractBootstrap.java:310)
                                                                                                    	at io.netty.bootstrap.AbstractBootstrap.doBind(AbstractBootstrap.java:272)
                                                                                                    	at io.netty.bootstrap.AbstractBootstrap.bind(AbstractBootstrap.java:268)
                                                                                                    	at io.netty.bootstrap.AbstractBootstrap.bind(AbstractBootstrap.java:253)
                                                                                                    	at io.ktor.server.netty.NettyApplicationEngine.start(NettyApplicationEngine.kt:192)
                                                                                                    	at com.example.getfile.MainActivity$onCreate$1.invokeSuspend(MainActivity.kt:48)
                                                                                                    	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
                                                                                                    	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
                                                                                                    	at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115)
                                                                                                    	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:103)
                                                                                                    	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
                                                                                                    	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
                                                                                                    	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
                                                                                                    	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
                                                                                                    	Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@5f369b3, Dispatchers.IO]
                                                                                                    Caused by: java.lang.reflect.InvocationTargetException
                                                                                                    	at java.lang.reflect.Constructor.newInstance0(Native Method)
                                                                                                    	at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
                                                                                                    	at io.netty.channel.ReflectiveChannelFactory.newChannel(ReflectiveChannelFactory.java:44)
                                                                                                    	... 14 more
                                                                                                    Caused by: io.netty.channel.ChannelException: Failed to open a server socket.
                                                                                                    	at io.netty.channel.socket.nio.NioServerSocketChannel.newSocket(NioServerSocketChannel.java:64)
                                                                                                    	at io.netty.channel.socket.nio.NioServerSocketChannel.<init>(NioServerSocketChannel.java:75)
                                                                                                    	... 17 more
                                                                                                    Caused by: java.net.SocketException: Operation not permitted
                                                                                                    	at sun.nio.ch.Net.socket0(Native Method)
                                                                                                    	at sun.nio.ch.Net.serverSocket(Net.java:424)
                                                                                                    	at sun.nio.ch.ServerSocketChannelImpl.<init>(ServerSocketChannelImpl.java:88)
                                                                                                    	at sun.nio.ch.SelectorProviderImpl.openServerSocketChannel(SelectorProviderImpl.java:56)
                                                                                                    	at io.netty.channel.socket.nio.NioServerSocketChannel.newSocket(NioServerSocketChannel.java:62)
                                                                                                    	... 18 more в приложении: package com.example.getfile
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import io.ktor.http.content.*
import io.ktor.server.application.call
import io.ktor.server.engine.embeddedServer
import io.ktor.server.netty.Netty
import io.ktor.server.request.receiveMultipart
import io.ktor.server.response.respondText
import io.ktor.server.routing.post
import io.ktor.server.routing.routing
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
import java.io.File
import java.io.FileOutputStream

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        // Запустим Ktor сервер в фоновом потоке
        GlobalScope.launch(Dispatchers.IO) {
            embeddedServer(Netty, port = 8080) {
                routing {
                    post("/upload") {
                        val multipartData = call.receiveMultipart()
                        multipartData.forEachPart { part ->
                            if (part is PartData.FileItem) {
                                // Сохраним файл
                                val fileName = part.originalFileName ?: "app_debug.apk"
                                val fileBytes = part.streamProvider().readBytes()

                                // Определим файл для сохранения в данных приложения
                                val file = File(filesDir, fileName)

                                // Запишем байты в файл
                                FileOutputStream(file).use { outputStream ->
                                    outputStream.write(fileBytes)
                                }
                            }
                            part.dispose()
                        }
                        call.respondText("Файл принят")
                    }
                }
            }.start(wait = true)
        }
    }
}