... // android { ... }
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.2.0'
compile 'com.android.support:design:23.1.0'
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
... // too long so i cant save edit!
compile 'org.twitter4j:twitter4j:4.0.4'
}
... //Kotlin and mavenCr..()
In bulid.gradle file dosent have any problem. but in Java(Kotlin) code..
twitter4j.* // Unresolved Reference
Error like this: Error:(23, 23) Unresolved reference: TwitterFactory
and another library works fine. only twitter4j dosent work. How do i resolve this?
You synced your build.gradle file? Also try doing a clean and rebuilding the project.
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.