如何设置路径Gradle Wrapper? 我想从网上建立apk。但我有两天的时间才能解决这个问题。
这里是我的结构文件夹
/var/www/html/engine/api/application/android_app/WebGenerator/ :
/.gradle
/.idea
/source (path i want to build
/build
/gradle
.gitignore
webGenerator.iml
build.gradle
gradle.properties
gradlew
local.properties
settings.gradle
在我的PHP代码中,我把这个放到exec gradlew
$app_path = '/var/www/html/engine/api/application/android_app/WebGenerator/';
exec($app_path.'gradlew assembleDebug --parallel --offline 2>&1', $outputs));
错误:
"Exception in thread "main" java.lang.RuntimeException: java.io.FileNotFoundException: /var/www/.gradle/wrapper/dists/gradle-2.4-all/3i2gobhdl0fm2tosnn15g540i0/gradle-2.4-all.zip.lck (No such file or directory)