android - Packages from library module not found in main module -


i got project imported eclipse android studio. in eclipse worked well.

it contains main module (a project in eclipse) uses packages library module (library project in eclipse). since migration did not went well, have created library module manually , copied source code newly created module.

the problem main module doesn't seem find packages library module , when rebuild project errors "package bla bla not exist".

here main module gradle.build:

apply plugin: 'com.android.application'  android {     compilesdkversion 25     buildtoolsversion "25.0.0"      defaultconfig {         applicationid "com.pointer.mamagoose"         minsdkversion 9         targetsdkversion 21     }      buildtypes {         release {             minifyenabled false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.txt'         }     } }  dependencies {     compile project(':linphoneclean')     compile 'com.android.support:support-v4:25.0.0'     compile 'com.android.support:appcompat-v7:25.0.0'     compile 'com.google.android.gms:play-services:9.4.0'     compile files('libs/firebase-client-android-2.5.0.jar')     compile files('libs/apache-httpcomponents-httpclient.jar')     compile files('libs/apache-httpcomponents-httpcore.jar')     compile files('libs/android-support-v7-recyclerview.jar') } 

linphoneclean library module.

the entire project's settings.gradle:

include ':linphoneclean' include ':tigris' 

this build.gradle of library module:

apply plugin: 'com.android.library'  android {     compilesdkversion 25     buildtoolsversion "25.0.0"      defaultconfig {         minsdkversion 9         targetsdkversion 25         versioncode 1         versionname "1.0"          testinstrumentationrunner "android.support.test.runner.androidjunitrunner"      }     buildtypes {         release {             minifyenabled false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'         }     } }  dependencies {     compile filetree(dir: 'libs', include: ['*.jar'])     androidtestcompile('com.android.support.test.espresso:espresso-core:2.2.2', {         exclude group: 'com.android.support', module: 'support-annotations'     })     compile 'com.android.support:appcompat-v7:25.0.0'     testcompile 'junit:junit:4.12'     compile 'com.google.code.gson:gson:2.6.2'     compile files('libs/commons-lang3-3.4.jar')     compile files('libs/linphone.jar')     compile files('libs/firebase-client-android-2.5.0.jar') } 

the structure of library module includes example folder: src/main/com/pointer/linphone (and inside there java files deceleration of package com.pointer.linphone, yet still error saying >"package com.pointer.linphone not exist).

what doing wrong?

after fighting same issue hours here worked me.

i've created fresh project blank activity, added library module dummy class, defined dependency. verified works importing dummy class in app. copied relevant code real project.

my thinking issue ide's iml files, since starting scratch , copying stuff on worked.


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -