我正在开发一个Android应用程序.我需要找到两个地理坐标之间的距离.
我用过Location.distanceBetween()和Location.distanceTo()功能.这些功能给出了直线距离,但是当我们通过公路旅行时,实际距离是不同的.
我正在使用 Jacoco v0.8.4和 Sonarcube v2.7.1。
\n\n\n\n\n我正在为 SonarCube 使用以下配置。
\n
property "sonar.sources", "src/main/java"\nproperty "sonar.binaries","build/intermediates/javac,app/build/tmp/kotlin-classes"\nproperty "sonar.java.binaries", "build/intermediates/javac,app/build/tmp/kotlin-classes"\nproperty "sonar.tests", "src/test/java" // where the tests are located\nproperty "sonar.java.test.binaries", "build/intermediates/javac,app/build/tmp/kotlin-classes"\nproperty "sonar.jacoco.reportPath", "build/jacoco/testDevDebugUnitTest.exec"\nproperty "sonar.java.coveragePlugin", "jacoco"\nproperty "sonar.android.lint.report", "build/reports/lint results.xml"\xe2\x80\xa8 \nRun Code Online (Sandbox Code Playgroud)\n\n\xe2\x80\xa8
\n\nSonarCube 分析失败,原因为无效值sonar.java.binaries值无效
\n\n> No files nor directories matching \'app/build/tmp/kotlin-classes\'
\xe2\x80\xa8但是\'app/build/tmp/kotlin-classes\'存在于我的项目文件夹中。
\n\n但是,如果我删除kotlin从属性中删除一些内容,那么它会成功提供 Java 文件的覆盖范围。
我对 Kotlin 的报道做错了什么吗?
\n您好,我在代码中使用了自定义方法,如下所示,但它始终为我提供帮助
java.lang.IllegalArgumentException:方法AUTH不能具有请求主体。
我的代码不起作用,它总是说: Custom method AUTH, must not have a Body
@Headers("Content-Type: application/json")
@HTTP(method = "AUTH", path = "login/{deviceId}", hasBody = true)
Call<Success> getLogin( @Path("deviceId") int deviceId, @Body RequestBody password);
Run Code Online (Sandbox Code Playgroud)
我正在使用以下依赖项。
compile 'com.google.code.gson:gson:2.8.1'
compile 'com.squareup.retrofit2:retrofit:2.3.0'
compile 'com.squareup.retrofit2:converter-gson:2.3.0'
compile 'com.squareup.okhttp3:okhttp:3.8.1'
compile 'com.squareup.okhttp3:logging-interceptor:3.4.1'
Run Code Online (Sandbox Code Playgroud)
你能帮我么。