2

I am following this tutorial - http://gaut.am/making-an-ocr-android-app-using-tesseract/ in order to build and use the tess-two library.

I ran into an error when running

android update project --path .

and in the tutorials, it says:

On Windows: “The project either has no target set or the target is invalid. Please provide a –target to the ‘android.bat update’ command.” Solution: Run the command android update project --path D:\Softwares\Studies\Android\OCR\Code_Project\tess-two-master\tess-two --target android-19

I ran the command with the android-19 target, and it worked.

My question is - what is the meaning of the target SDK (in this case, android-19) that I put in the build command?

does it mean it will be the minimum version for it to run on or anything like that??

thanks in advance

Ofek Agmon
  • 5,040
  • 14
  • 57
  • 101

1 Answers1

0

Setting the target SDK ensures that you can use the features from that SDK. It is the version your application was targeted to run on.
It is not the minimum version for the application to run on. Here are a few reference question's that will clear your doubts.
Difference in Target and the minSDK version

And here is one more: Android Min SDK Version vs. Target SDK Version

Community
  • 1
  • 1
Msk
  • 857
  • 9
  • 16
  • thanks for your answer. so lets say I built it with android-19, and in my app I have Min SDK - 15 and Target SDK - 22, will it work nicely? – Ofek Agmon Apr 27 '15 at 17:10
  • Good question. I think it will not. You are building using 19 version. If u might use some feature of 22 it might not work. 15 as min sdk will be fine as that just ensures backward compatibility:-) – Msk Apr 27 '15 at 17:16
  • Still im not sure about this. – Msk Apr 27 '15 at 17:20
  • but lets say that I am not using any feature from the 22, it will be fine? just testing the library – Ofek Agmon Apr 27 '15 at 17:52