Generate apk file for meteor app
https://developer.android.com/studio/index.html
上面写着:
“仅获取命令行工具”
。安装路径是
/home/pcmagas/ÎήÏειÏ/tools
drwxr-xr-x 6 pcmagas pcmagas 4096 ÎοÏλ 19 11:43 ./
drwxr-xr-x 4 pcmagas pcmagas 4096 ÎοÏλ 19 11:43 ../
-rwxr--r-- 1 pcmagas pcmagas 4741 ÎÎ¬Ï 29 00:46 android*
drwxr-xr-x 2 pcmagas pcmagas 4096 ÎÎ¬Ï 29 00:46 bin/
-rwxr--r-- 1 pcmagas pcmagas 643536 ÎÎ¬Ï 29 00:46 emulator*
-rwxr--r-- 1 pcmagas pcmagas 394336 ÎÎ¬Ï 29 00:46 emulator-check*
drwxr-xr-x 6 pcmagas pcmagas 4096 ÎÎ¬Ï 29 00:46 lib/
-rwxr--r-- 1 pcmagas pcmagas 12191 ÎÎ¬Ï 29 00:46 mksdcard*
-rwxr--r-- 1 pcmagas pcmagas 1257 ÎÎ¬Ï 29 00:46 monitor*
-rw-r--r-- 1 pcmagas pcmagas 629709 ÎÎ¬Ï 29 00:46 NOTICE.txt
-rw-rw-r-- 1 pcmagas pcmagas 919 ÎοÏλ 19 11:43 package.xml
drwxr-xr-x 7 pcmagas pcmagas 4096 ÎÎ¬Ï 29 00:46 proguard/
-rw-r--r-- 1 pcmagas pcmagas 139 ÎÎ¬Ï 29 00:46 source.properties
drwxr-xr-x 2 pcmagas pcmagas 4096 ÎÎ¬Ï 29 00:46 support/
ANDROID_HOME
具有此值的环境变量:
echo $ANDROID_HOME
/home/pcmagas/ÎήÏειÏ/tools
和
PATH
export PATH=${PATH}:$ANDROID_HOME
然后我
cd
meteor add-platform android
但我得到了以下错误:
â Android target: Android SDK not found. Make sure that it is installed. If it is not at the default location, set the ANDROID_HOME environment variable.
â Gradle: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK.
Looked here: /home/pcmagas/ÎήÏειÏ/tools/tools/templates/gradle/wrapper
我还尝试了:
export PATH="$PATH:$ANDROID_HOME/bin"
编辑1:
仍然没有成功。
编辑2:
sdkmanager "build-tools;25.0.3"
现在我得到了唯一的错误:
â Gradle: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK.
Looked here: /home/pcmagas/ÎήÏειÏ/SDK/tools/tools/templates/gradle/wrapper
此外,我更改了
进入
/home/pcmagas/ÎήÏειÏ/SDK/tools
并将SDK生成的所有文件夹移动到:
/home/pcmagas/ÎήÏειÏ/SDK/