Missing allheaders.h in Android Studio Project

前端 未结 5 1739
礼貌的吻别
礼貌的吻别 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

    I'm not sure if it works for you but in my case, here's what I've done:

    1. In common.h: change #include into #include .

    2. In the library project build.gradle: add this

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

提交回复
热议问题