Unable to use it as library project module in android studio
Hi I imported Lightning browser as a module to a main app project , then I changed it to be a library module and call it from main app project , everything goes ok until I try to use any classes of Lightning browser in main app project , for example if I try to define an object like this BrowserActivity ba; then it gives the error "error: cannot find symbol class BrowserActivity" . Also I should say that I wrote import BrowserActivity class on top of the main code. Is it because of that Lightning browser uses dagger or something like that ? Please help me , how can I solve it that Lightning Browser classes become visible in my main project ?
this is my main app gradle :
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.example.moduleimporttestproject"
minSdkVersion 8
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
compile (project(':lightning')){
exclude group: 'com.android.support', module: 'appcompat-v7'
exclude group: 'com.android.support', module: 'design'
}
}
Thanks.
@mobi-life Did you ever find a solution to this?
Any example on how to use this project as a library?