Missing allheaders.h in Android Studio Project

前端 未结 5 1694
礼貌的吻别
礼貌的吻别 2021-01-14 02:56

I am following the tutorial from this tesseract tutorial and had everything go smoothly up until my actual running of the Java code. When I try

new TessBaseA         


        
5条回答
  •  情话喂你
    2021-01-14 03:58

    At some point Android Studio suggests to set jni.srcDirs = []

    leading to following sourceSets in the gradle.build of my tess-two library project

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

    With correct src path entered here this actualy works

提交回复
热议问题