Tools / android cannot find sdkmanager.jar

I am trying to use a web server (written in php) to create an android project (Apache server. The PHP script just calls proc_open to run "/ vol1 / android_sdk / android-sdk-linux / tools / android update project --target 4 --name Theme2 --path / vol1 / tmp / BuildTest "

android is running, but it returned "android: cannot find sdkmanager.jar"

I tried to work around this by setting: CLASSPATH = $ ANDROID_SDK_HOME / tools / Library in the environment, but this did not change the result.

Can anybody help?

Thanks.

+4
source share
1 answer

Where did you install CLASSPATH? This should be when the user running Apache can access it. You may need to make sure that the ENV variable of the user is accessible using mod_env and SetEnv for access.

0
source

Source: https://habr.com/ru/post/1387377/


All Articles