Joined July 2015
·

Wasif Hamdani

اسلام آباد, پاکستان
·
·

Posted to Tesseract with andoird and gradle over 1 year ago

After adding library to settings.gradle file. I got following error:

Error:A problem occurred configuring project ':app'.

A problem occurred configuring project ':libraries:tess-two'.
java.io.FileNotFoundException: /home/usr/OCRApplication/libraries/tess-two/AndroidManifest.xml (No such file or directory)

To fix this issue, I modified the code as:

sourceSets.main {
    manifest.srcFile 'src/main/AndroidManifest.xml'
    java.srcDirs = ['src']
    resources.srcDirs = ['src']
    res.srcDirs = ['res']
    jniLibs.srcDirs = ['libs']
}

By this change, I got list of errors and build failed. Here are few errors:

Error:(16, 27) error: package org.piccolo2d.nodes does not exist
Error:(24, 19) error: package javax.swing does not exist
Error:(25, 19) error: package javax.swing does not exist
Error:(28, 3) error: cannot find symbol class JMenuItem
Error:(35, 43) error: cannot find symbol class JMenuItem
Error:(48, 19) error: cannot find symbol class JMenu

I spent a lot of time but no luck. What's wrong here.
Please reply ASAP. Thanks for prompt response.

Achievements
1 Karma
0 Total ProTip Views