-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in building the app in android studio #18
Comments
Thanks for reporting the issue. I would say that the problem is not related to Android Studio but your NDK setup. I work in Linux so unfortunately I cannot help you much with the Windows specific stuff, but I would suggest that you first double check that all the paths you set are correct. If you still cannot solve the problem I would need the full log to help you (I am pretty sure that some stuff is missing there). |
Thanks for reply and I have already checked the paths in all things. I want to mention here that I have ndk.dir set in local.properties file and also I have set the ndk directory in gradle.properties. Plus I have also created a windows environment variable as NDK_HOME. I have also tried deleting the externally downloaded ndk and installing it via android studio's built-in manager but still no luck. Below I am pasting the as it is error log. Information:Gradle tasks [clean, :app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:compileDebugSources, :app:compileDebugAndroidTestSources, :libraries:cropper:generateDebugSources, :libraries:cropper:generateDebugAndroidTestSources, :libraries:cropper:compileDebugSources, :libraries:cropper:compileDebugAndroidTestSources, :libraries:tesseract-android-tools:generateDebugSources, :libraries:tesseract-android-tools:generateDebugAndroidTestSources, :libraries:tesseract-android-tools:compileDebugSources, :libraries:tesseract-android-tools:compileDebugAndroidTestSources, :libraries:opencv:generateDebugSources, :libraries:opencv:generateDebugAndroidTestSources, :libraries:opencv:compileDebugSources, :libraries:opencv:compileDebugAndroidTestSources]
|
I think there's a problem with the pathnames being too long to build tesseract-android-tools on Windows. I'd suggest swapping in my fork called tess-two (I gave my fork a shorter name to avoid pathname problems like this) and moving your If I remember right, the "cp1252" errors can be corrected by specifying a UTF-8 file encoding in the bottom right corner of Android Studio. Alternatively, the project builds nicely on Linux, so you might try installing Ubuntu on VirtualBox, if you have a fast machine, and building it there. |
I tried what you said, first I forked mitzuli then I downloaded it and extracted it as you said in C:/mitzuli and imported this in android studio. After all the setup, I tried building the project and also setting the UTF-8 file encoding as you said but still it is not getting build. Well I can build it without OCR feature(no ndk) but I needed this feature for testing. Plus I don't have that much fast machine so can't install linux. |
I have the same issue.... Information:Gradle tasks [clean, :app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:compileDebugSources, :app:compileDebugAndroidTestSources, :libraries:cropper:generateDebugSources, :libraries:cropper:generateDebugAndroidTestSources, :libraries:cropper:compileDebugSources, :libraries:cropper:compileDebugAndroidTestSources, :libraries:tesseract-android-tools:generateDebugSources, :libraries:tesseract-android-tools:generateDebugAndroidTestSources, :libraries:tesseract-android-tools:compileDebugSources, :libraries:tesseract-android-tools:compileDebugAndroidTestSources, :libraries:opencv:generateDebugSources, :libraries:opencv:generateDebugAndroidTestSources, :libraries:opencv:compileDebugSources, :libraries:opencv:compileDebugAndroidTestSources]
|
Hello, I am trying to build this app from source code in android studio 1.4.1 for testing but it is continuously giving the same errors even I have done all the setup. Below I am pasting the full errors.
C:\Users\DOSSANI'S\Downloads\mitzuli-master\mitzuli-master\libraries\lttoolbox-java\src\main\java\org\apertium\charlifter\training\Asciify.java
Error:(46, 24) error: unmappable character for encoding Cp1252
Error:(83, 27) error: unmappable character for encoding Cp1252
C:\Users\DOSSANI'S\Downloads\mitzuli-master\mitzuli-master\libraries\lttoolbox-java\src\main\java\org\apertium\lttoolbox\Alphabet.java
Error:(87, 494) error: unmappable character for encoding Cp1252
Error:(87, 497) error: unmappable character for encoding Cp1252
Error:error: C:/Users/DOSSANIS/Downloads/mitzuli-master/mitzuli-master/libraries/tesseract-android-tools/src/main/native/com_googlecode_leptonica_android/box.cpp -o C:\Users\DOSSANIS\Downloads\mitzuli-master\mitzuli-master\libraries\tesseract-android-tools\build/native/obj/local/armeabi/objs/lept/box.o: No such file or directory
arm-linux-androideabi-g++: fatal error: no input files
compilation terminated.
make.exe: *** [C:\Users\DOSSANI'S\Downloads\mitzuli-master\mitzuli-master\libraries\tesseract-android-tools\build/native/obj/local/armeabi/objs/lept/box.o] Error 1
make.exe: *** Waiting for unfinished jobs....
Error:error: C:/Users/DOSSANIS/Downloads/mitzuli-master/mitzuli-master/libraries/tesseract-android-tools/src/main/native/com_googlecode_leptonica_android/pix.cpp -o C:\Users\DOSSANIS\Downloads\mitzuli-master\mitzuli-master\libraries\tesseract-android-tools\build/native/obj/local/armeabi/objs/lept/pix.o: No such file or directory
arm-linux-androideabi-g++: fatal error: no input files
compilation terminated.
make.exe: *** [C:\Users\DOSSANI'S\Downloads\mitzuli-master\mitzuli-master\libraries\tesseract-android-tools\build/native/obj/local/armeabi/objs/lept/pix.o] Error 1
[armeabi] Compile++ thumb: lept <= utilities.cpp
Error:error: C:/Users/DOSSANIS/Downloads/mitzuli-master/mitzuli-master/libraries/tesseract-android-tools/src/main/native/com_googlecode_leptonica_android/pixa.cpp -o C:\Users\DOSSANIS\Downloads\mitzuli-master\mitzuli-master\libraries\tesseract-android-tools\build/native/obj/local/armeabi/objs/lept/pixa.o: No such file or directory
arm-linux-androideabi-g++: fatal error: no input files
compilation terminated.
make.exe: *** [C:\Users\DOSSANI'S\Downloads\mitzuli-master\mitzuli-master\libraries\tesseract-android-tools\build/native/obj/local/armeabi/objs/lept/pixa.o] Error 1
Error:error: C:/Users/DOSSANIS/Downloads/mitzuli-master/mitzuli-master/libraries/tesseract-android-tools/src/main/native/com_googlecode_leptonica_android/utilities.cpp -o C:\Users\DOSSANIS\Downloads\mitzuli-master\mitzuli-master\libraries\tesseract-android-tools\build/native/obj/local/armeabi/objs/lept/utilities.o: No such file or directory
arm-linux-androideabi-g++: fatal error: no input files
compilation terminated.
make.exe: *** [C:\Users\DOSSANI'S\Downloads\mitzuli-master\mitzuli-master\libraries\tesseract-android-tools\build/native/obj/local/armeabi/objs/lept/utilities.o] Error 1
make.exe: Leaving directory `C:/Users/DOSSANI'S/Downloads/mitzuli-master/mitzuli-master/libraries/tesseract-android-tools/src/main/native'
:libraries:tesseract-android-tools:ndkBuild FAILED
Error:Execution failed for task ':libraries:tesseract-android-tools:ndkBuild'.
Kindly help me to solve this error. Thanks
The text was updated successfully, but these errors were encountered: