title: Receiver class does not define or inherit an implementation of the resolved method 'abstract boolean getDevelopmentMode()'
body: <p>I'm trying to run local server with KTOR and to cover it with tests. I wrote some code and after writing some tests, the tests successfully raised the local server and passed. However, if I try to start a local server, I get this error</p>
  <blockquote>
  <p>Exception in thread &quot;main&quot; java.lang.AbstractMethodError: Receiver
  class io.ktor.server.engine.ApplicationEngineEnvironmentReloading does
  not define or inherit an implementation of the resolved method
  'abstract boolean getDevelopmentMode()' of interface
  io.ktor.application.ApplicationEnvironment.</p>
  </blockquote>
  <p>I attach the code and the stack trace from below</p>
  <h3>server.kt</h3>
  <pre><code>import io.ktor.application.*
  import io.ktor.features.*
  import io.ktor.gson.*
  import io.ktor.http.*
  import io.ktor.response.*
  import io.ktor.routing.*
  import kotlinx.serialization.SerialName
  import kotlinx.serialization.Serializable
  
  
  fun main(args: Array&lt;String&gt;): Unit = io.ktor.server.netty.EngineMain.main(args)
  
  fun Application.module(testing: Boolean = false) {
      install(ContentNegotiation) {
          gson()
      }
  
      routing {
          val controller = Controller()
  
          get(&quot;/converter{from}{to}&quot;) {
              try {
                  val fromCurrency = call.request.queryParameters[&quot;from&quot;]
                  val toCurrency = call.request.queryParameters[&quot;to&quot;]
                  val rate = controller.converter(fromCurrency, toCurrency)
                  val response = Response(
                      &quot;1 $fromCurrency = $rate $toCurrency&quot;,
                      null
                  )
                  call.respond(HttpStatusCode.OK, response)
              } catch (e: ControllerException) {
                  val response = Response(
                      null,
                      e.message
                  )
                  call.respond(HttpStatusCode.BadRequest, response)
              }
          }
  
          get {
              call.respond(HttpStatusCode.NotFound, Response())
          }
      }
  }
  
  @Serializable
  data class Response(
      @SerialName(&quot;converterResponse&quot;)
      val converterResponse: String? = null,
      @SerialName(&quot;errorMessage&quot;)
      val errorMessage: String? = null
  )
  </code></pre>
  <h3>converterTest.kt</h3>
  <pre><code>import com.google.gson.Gson
  import io.ktor.application.*
  import io.ktor.http.*
  import io.ktor.server.testing.*
  import kotlin.test.Test
  import kotlin.test.assertEquals
  
  class ConverterTest {
      @Test
      fun `Identical Correct Currencies`() {
          withTestApplication(Application::module) {
              handleRequest(HttpMethod.Get, &quot;/converter?from=USD&amp;to=USD&quot;).apply {
                  assertEquals(HttpStatusCode.OK, response.status())
                  val expectedResponse = Response(&quot;1 USD = 1 USD&quot;)
                  assertEquals(
                      Gson().toJson(expectedResponse),
                      response.content
                  )
              }
          }
      }
  }
  </code></pre>
  <h3>stacktrace</h3>
  <pre><code>Exception in thread &quot;main&quot; java.lang.AbstractMethodError: Receiver class io.ktor.server.engine.ApplicationEngineEnvironmentReloading does not define or inherit an implementation of the resolved method 'abstract boolean getDevelopmentMode()' of interface io.ktor.application.ApplicationEnvironment.
  at io.ktor.application.Application.&lt;init&gt;(Application.kt:20)
  at io.ktor.server.engine.ApplicationEngineEnvironmentReloading.instantiateAndConfigureApplication(ApplicationEngineEnvironmentReloading.kt:269)
  at io.ktor.server.engine.ApplicationEngineEnvironmentReloading.createApplication(ApplicationEngineEnvironmentReloading.kt:125)
  at io.ktor.server.engine.ApplicationEngineEnvironmentReloading.start(ApplicationEngineEnvironmentReloading.kt:245)
  at io.ktor.server.netty.NettyApplicationEngine.start(NettyApplicationEngine.kt:126)
  at io.ktor.server.netty.EngineMain.main(EngineMain.kt:26)
  at ServerKt.main(server.kt:11)
  </code></pre>
  <h3>build.gradle</h3>
  <pre><code>import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
  
  plugins {
      kotlin(&quot;jvm&quot;) version &quot;1.5.30&quot; // or kotlin(&quot;multiplatform&quot;) or any other kotlin plugin
      application
  }
  
  group = &quot;me.admin&quot;
  version = &quot;1.0-SNAPSHOT&quot;
  
  repositories {
      jcenter()
      mavenCentral()
      maven { url = uri(&quot;https://dl.bintray.com/kotlin/kotlinx&quot;) }
      maven { url = uri(&quot;https://dl.bintray.com/kotlin/ktor&quot;) }
  }
  
  dependencies {
      val kotlin_version = &quot;1.5.30&quot;
      val ktor_version = &quot;1.6.3&quot;
  
      implementation(&quot;io.ktor:ktor-server-netty:1.4.0&quot;)
      implementation(&quot;io.ktor:ktor-client-cio:1.4.0&quot;)
      implementation(&quot;io.ktor:ktor-html-builder:1.4.0&quot;)
      implementation(&quot;io.ktor:ktor-client-serialization:1.3.2-1.4-M2&quot;)
      implementation(&quot;org.jetbrains.kotlinx:kotlinx-html-jvm:0.7.2&quot;)
      implementation(&quot;org.slf4j:slf4j-api:2.0.0-alpha5&quot;)
  
      implementation(&quot;org.jetbrains.kotlinx:kotlinx-serialization-core:1.0.0-RC&quot;)
      implementation(kotlin(&quot;stdlib-jdk8&quot;))
      testImplementation(&quot;org.jetbrains.kotlin:kotlin-test:$kotlin_version&quot;)
      testImplementation(&quot;io.ktor:ktor-server-test-host:$ktor_version&quot;)
      implementation(&quot;io.ktor:ktor-gson:$ktor_version&quot;)
  }
  
  tasks.test {
      useJUnitPlatform()
  }
  
  tasks.withType&lt;KotlinCompile&gt; {
      kotlinOptions.jvmTarget = &quot;1.8&quot;
  }
  
  application {
      mainClassName = &quot;ServerKt&quot;
  }
  val compileKotlin: KotlinCompile by tasks
  compileKotlin.kotlinOptions {
      jvmTarget = &quot;1.8&quot;
  }
  val compileTestKotlin: KotlinCompile by tasks
  compileTestKotlin.kotlinOptions {
      jvmTarget = &quot;1.8&quot;
  }
  </code></pre>