Skip to content

Instantly share code, notes, and snippets.

@bassaer
Created December 24, 2017 08:41
Show Gist options
  • Save bassaer/2e866833f828aafa4a682f677002e570 to your computer and use it in GitHub Desktop.
Save bassaer/2e866833f828aafa4a682f677002e570 to your computer and use it in GitHub Desktop.
kotlin書き換え時の「エラー: パッケージxxxは存在しません」「エラー: シンボルを見つけられません」対処メモ ref: https://qiita.com/bassaer/items/01fe28de03096e1b2ef6
/Users/nakayama/StudioProjects/ChatMessageView/example/src/androidTest/java/com/github/bassaer/example/MessengerActivityTest.java:13: エラー: パッケージcom.github.bassaer.example.matcherは存在しません
import com.github.bassaer.example.matcher.MessageListMatcher;
^
/Users/nakayama/StudioProjects/ChatMessageView/example/src/androidTest/java/com/github/bassaer/example/MessengerActivityTest.java:146: エラー: シンボルを見つけられません
onView(withId(R.id.message_view)).check(matches(MessageListMatcher.withListSize(0)));
├── androidTest
│   ├── java
│   │   └── com
│   │   └── github
│   │   └── bassaer
│   │   └── example
│   │   ├── MainActivityTest.java
│   │   ├── MessengerActivityTest.java
│   │   ├── matchers
│   │   │   ├── DrawableMatcher.java
│   │   │   ├── ImageViewDrawableMatcher.java
│   │   │   └── TextColorMatcher.java
│   │   └── util
│   │   └── ElapsedTimeIdlingResource.java
│   └── kotlin
│   └── com
│   └── github
│   └── bassaer
│   └── example
│   ├── matcher
│   │   ├── ColorMatcher.kt
│   │   └── MessageListMatcher.kt
│   └── util
└── main
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
androidTest.java.srcDirs += 'src/androidTest/kotlin'
test.java.srcDirs += 'src/test/kotlin'
}
apply plugin: 'kotlin-android'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment