android - Importing external jars and Gradle error -


i see many other users have encountered error gradle: error: package <...> not exist, i've tried following various suggestions no avail. appreciated.

my project imports conceal jar external library, not sit inside libs.

here's tree:

⇒  tree -l 3 . ├── myapplication.iml ├── app │   ├── app.iml │   ├── build │   │   ├── generated │   │   ├── intermediates │   │   ├── outputs │   │   └── tmp │   ├── build.gradle │   ├── libs │   │   └── libs.zip │   ├── proguard-rules.pro │   └── src │       ├── androidtest │       └── main ├── build │   └── intermediates │       └── dex-cache ├── build.gradle ├── gradle │   └── wrapper │       ├── gradle-wrapper.jar │       └── gradle-wrapper.properties ├── gradle.properties ├── gradlew ├── gradlew.bat ├── local.properties └── settings.gradle 

my app/build.gradle looks below

buildscript {     repositories {         jcenter()     }     dependencies {         classpath 'com.android.tools.build:gradle:1.0.0'     } } apply plugin: 'com.android.application'  repositories {     jcenter() }  android {     compilesdkversion 21     buildtoolsversion "23.0.1"      defaultconfig {         applicationid "com.example.myapplication.app"         minsdkversion 9         targetsdkversion 21         versioncode 1         versionname "1.0"     }      compileoptions {         sourcecompatibility javaversion.version_1_6         targetcompatibility javaversion.version_1_6     }     buildtypes {         release {             minifyenabled false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'         }     } }  dependencies {     compile filetree(dir: 'libs', include: ['*.jar'])     compile 'com.android.support:appcompat-v7:21.0.3'     compile 'com.facebook.conceal:conceal:1.0.1' } 

i have compile filetree(dir: 'libs', include: ['*.jar']) under dependencies, should have jar imported - correct? or jar (or of jars matter) have sit inside libs? if so, not import external jars?

here's build.gradle under root

buildscript {     repositories {         jcenter()     }     dependencies {         classpath 'com.android.tools.build:gradle:1.0.0'          // note: not place application dependencies here; belong         // in individual module build.gradle files     } }  allprojects {     repositories {         jcenter()     } } 

i wonder if i'm missing obvious. appreciated.

thanks

from understand of this: https://github.com/facebook/conceal/issues/27 need reference using

compile 'com.facebook.conceal:conceal:1.0.1@aar' 

until issue fixed.


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -