working of tesseract,(tess-two,eyes-two) and its gradle errors with default config in android studio -


iam trying use tessearct image based compiler app. have created library under main project contains both tess-two , eyes-two files. iam having problems in building build.gradle files

the project's root build.gradle file

enter // top-level build file can add configuration options common sub-projects/modules.  buildscript { repositories {     jcenter() } dependencies {     classpath 'com.android.tools.build:gradle:1.2.3'      // note: not place application dependencies here; belong     // in individual module build.gradle files     } }  allprojects { repositories {     jcenter() }  }  

the project's module:app/build.gradle

apply plugin: 'com.android.application'  android { compilesdkversion 22 buildtoolsversion "23.0.0 rc3"  defaultconfig {     applicationid "com.example.pavithra.ocrreader"     minsdkversion 15     targetsdkversion 22     versioncode 1     versionname "1.0" } 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:22.2.1' compile project (':libraries:eyes-two') compile project (':libraries:tess-two')  } 

now project's setting.gradle

  include ':app'   include ':libraries:eyes-two'   include ':libraries:tess-two' 

tess-two's build.gradle

   buildscript {     repositories {         mavencentral()     }     dependencies {         classpath "com.android.tools.build:gradle:1.2.3"      }    }    apply plugin: "android-library"    android {     compilesdkversion 22     buildtoolsversion '23.0.0 rc3'    defaultconfig {       minsdkversion 15      targetsdkversion 22   }    sourcesets.main {       manifest.srcfile "androidmanifest.xml"      java.srcdirs = ["src"]     resources.srcdirs = ["src"]     res.srcdirs = ["res"]     jnilibs.srcdirs = ["libs"]    } 

eyes-two build.gradle

   buildscript {     repositories {         mavencentral()   }     dependencies {       classpath "com.android.tools.build:gradle:1.2.3"        }     }      apply plugin: "android-library"      android {     compilesdkversion 22     buildtoolsversion '23.0.0 rc3'       defaultconfig {       minsdkversion 15      targetsdkversion 22      }      sourcesets.main {        manifest.srcfile "androidmanifest.xml"         java.srcdirs = ["src"]        resources.srcdirs = ["src"]        res.srcdirs = ["res"]        jnilibs.srcdirs = ["libs"]      } 

now when build this, android studio throws error saying:

error:a problem occurred configuring project ':app'.  > cannot evaluate module eyes-two : configuration name 'default' not found. 

this taking me no can please me have submission in day ! please. build.gradle files respect to eyes-to , tess-two thank in advance.

add following lines settings.gradle file

project(':tess-two').projectdir = new file('libraries/tess-two')  project(':eyes-two').projectdir = new file('libraries/eyes-two')  

Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -