Created
December 24, 2017 08:41
-
-
Save bassaer/2e866833f828aafa4a682f677002e570 to your computer and use it in GitHub Desktop.
kotlin書き換え時の「エラー: パッケージxxxは存在しません」「エラー: シンボルを見つけられません」対処メモ ref: https://qiita.com/bassaer/items/01fe28de03096e1b2ef6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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))); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
├── 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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sourceSets { | |
main.java.srcDirs += 'src/main/kotlin' | |
androidTest.java.srcDirs += 'src/androidTest/kotlin' | |
test.java.srcDirs += 'src/test/kotlin' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'kotlin-android' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment