0

I am trying to build an android app from command line after installing the platform tools. but I am getting the following error

 SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project's local properties file

IS the IDE necessary to build the app,or can we build it from the command line iteself?

Jerin Cherian
  • 436
  • 1
  • 5
  • 22
  • Are you trying to create a "Hello World" app without Android Studio or building an existing app (i.e for a CI/CD system). – Morrison Chang Jun 23 '20 at 16:43
  • You can certainly build from the command line, but you have to have installed the SDK first... – Nicolas Jun 23 '20 at 16:58
  • I am trying to build an apk for an existing app without having to install the idea @MorrisonChang – Jerin Cherian Jun 23 '20 at 17:04
  • See: https://developer.android.com/studio/command-line/variables – Morrison Chang Jun 23 '20 at 17:43
  • 1
    Does this answer your question? [SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID\_HOME environment variable](https://stackoverflow.com/questions/27620262/sdk-location-not-found-define-location-with-sdk-dir-in-the-local-properties-fil) – Ryan M Jun 23 '20 at 18:46

0 Answers0