我使用AS3.0預(yù)覽版新建了一個(gè)kotlin項(xiàng)目,直接運(yùn)行單元測(cè)試時(shí)提示
Process finished with exit code 1
Class not found: "***Test"Empty test suite.
package com.github2136.kotlintest
import org.junit.Assert.assertEquals
import org.junit.Test
class ExampleUnitTest {
@test
@Throws(Exception::class)
fun addition_isCorrect() {
assertEquals(4, (2 + 2).toLong())
}
}
請(qǐng)問這是什么問題?
Android Studio配置Kotlin開發(fā)環(huán)境的最簡(jiǎn)單方式第一步:安裝Kotlin插件 打開Settings面板,找到Plugins選項(xiàng),點(diǎn)擊Browse repositories(瀏覽倉(cāng)庫(kù)),輸入“Kotlin”查找,然后安裝即可...