rmtheis / tess-two

Fork of Tesseract Tools for Android
Apache License 2.0
3.76k stars 1.38k forks source link

Building fails - missing/invalid project target #131

Closed manangatangy closed 8 years ago

manangatangy commented 8 years ago

Following the instructions at [https://github.com/rmtheis/tess-two/blob/master/BUILDING.md#android-studio-and-gradle] and the android update command fails:

Davids-MacBook-Pro-2:tess dweiss$ android update project --path tess-two Error: The project either has no target set or the target is invalid. Please provide a --target to the 'android update' command. Davids-MacBook-Pro-2:tess dweiss$

Can you please help me to figure out what I'm doing wrong ? My sdk/ndk is freshly downloaded and up to date

Davids-MacBook-Pro-2:tess dweiss$ which android /Users/dweiss/Library/Android/sdk/tools/android Davids-MacBook-Pro-2:tess dweiss$ ls -l $ANDROID_HOME total 8 -rw-r--r-- 1 dweiss staff 1158 14 Jan 17:30 SDK Readme.txt drwxr-xr-x 4 dweiss staff 136 21 Jan 15:05 add-ons drwxr-xr-x 6 dweiss staff 204 29 Jan 12:51 build-tools drwxr-xr-x 5 dweiss staff 170 14 Jan 17:31 extras drwxr-xr-x 25 dweiss staff 850 29 Jan 15:11 ndk-bundle drwxr-xr-x 13 dweiss staff 442 14 Jan 17:31 platform-tools drwxr-xr-x 5 dweiss staff 170 29 Jan 12:52 platforms drwxr-xr-x 3 dweiss staff 102 14 Jan 17:31 sources drwxr-xr-x 4 dweiss staff 136 21 Jan 15:05 system-images drwxr-xr-x 2 dweiss staff 68 29 Jan 15:11 temp drwxr-xr-x 31 dweiss staff 1054 14 Jan 17:33 tools Davids-MacBook-Pro-2:tess dweiss$ ls -l /Users/dweiss/Library/Android/sdk/build-tools/ total 0 drwxr-xr-x 20 dweiss staff 680 29 Jan 12:51 19.1.0 drwxr-xr-x 26 dweiss staff 884 21 Jan 15:51 21.1.2 drwxr-xr-x 22 dweiss staff 748 29 Jan 12:51 23.0.1 drwxr-xr-x 22 dweiss staff 748 14 Jan 17:31 23.0.2 Davids-MacBook-Pro-2:tess dweiss$ ls -l /Users/dweiss/Library/Android/sdk/ndk-bundle/ total 1888 -rw-r--r-- 1 dweiss staff 1306 29 Jan 15:10 GNUmakefile -rw-r--r-- 1 dweiss staff 1360 29 Jan 15:11 README.TXT -rw-r--r-- 1 dweiss staff 14 29 Jan 15:11 RELEASE.TXT drwxr-xr-x 6 dweiss staff 204 29 Jan 15:10 build drwxr-xr-x 7 dweiss staff 238 29 Jan 15:11 docs -rwxr-xr-x 1 dweiss staff 856 29 Jan 15:10 find-win-host.cmd -rwxr-xr-x 1 dweiss staff 9820 29 Jan 15:10 ndk-build -rwxr-xr-x 1 dweiss staff 292 29 Jan 15:10 ndk-build.cmd -rwxr-xr-x 1 dweiss staff 48404 29 Jan 15:10 ndk-depends -rwxr-xr-x 1 dweiss staff 27745 29 Jan 15:10 ndk-gdb -rwxr-xr-x 1 dweiss staff 355 29 Jan 15:11 ndk-gdb-py -rwxr-xr-x 1 dweiss staff 294 29 Jan 15:10 ndk-gdb-py.cmd -rwxr-xr-x 1 dweiss staff 35851 29 Jan 15:11 ndk-gdb.py -rwxr-xr-x 1 dweiss staff 779896 29 Jan 15:10 ndk-stack -rwxr-xr-x 1 dweiss staff 1671 29 Jan 15:10 ndk-which drwxr-xr-x 16 dweiss staff 544 29 Jan 15:10 platforms drwxr-xr-x 10 dweiss staff 340 29 Jan 15:10 prebuilt -rwxr-xr-x 1 dweiss staff 328 29 Jan 15:10 remove-windows-symlink.sh drwxr-xr-x 19 dweiss staff 646 29 Jan 15:10 samples -rw-r--r-- 1 dweiss staff 16546 29 Jan 15:11 source.properties drwxr-xr-x 6 dweiss staff 204 29 Jan 15:10 sources drwxr-xr-x 12 dweiss staff 408 29 Jan 15:11 tests drwxr-xr-x 26 dweiss staff 884 29 Jan 15:10 toolchains Davids-MacBook-Pro-2:tess dweiss$

Any clues on how to fix this will be much appreciated. thanks.

manangatangy commented 8 years ago

I added parameters --target "android-19" to the android update command and it succeeded.