跟隨了針對android包裝的abbyy安裝。很明顯,在安裝程序中遺漏了一些內容,因爲在創建引擎實例時出現以下錯誤。Abbyy ocr android未指定鏈接錯誤
final AssetDataSource ad = new AssetDataSource(ctx.getAssets());
final List<DataSource> dataSources = new ArrayList<DataSource>();
dataSources.add(ad);
DataFilesExtensions dfe = new DataFilesExtensions(".mp3",".mp3",".mp3");
String LicenseFile = "";
try {
Engine.createInstance(dataSources, new FileLicense(ad,LicenseFile,appID),dfe);
產生以下錯誤(logcat的):
01-09 20:54:49.405: W/dalvikvm(3514): No implementation found for native Lcom/abbyy/mobile/ocr4/DataArray;.create (I)Z
01-09 20:54:49.522: E/DataArray(3514): java.lang.UnsatisfiedLinkError: create
01-09 20:54:49.522: W/dalvikvm(3514): No implementation found for native Lcom/abbyy/mobile/ocr4/DataArray;.pushChunk ([BI)V
找出了文件名問題,但在將資源文件複製到正確的目錄後,仍然在Engine創建時得到以下錯誤。 – slohman
錯誤的是:01-11 05:43:34.671:W/dalvikvm(5680):未找到原生Lcom/abbyy/mobile/ocr4/DataArray; .create(I)Z 01-11 05:43:34.772 :E/DataArray(5680):java.lang.UnsatisfiedLinkError:create 01-11 05:43:34.772:W/dalvikvm(5680):未找到本機Lcom/abbyy/mobile/ocr4/DataArray; .pushChunk [BI)V – slohman