-1
プロジェクトにgradlew :lint
を実行します。私は実行するとLint - FAILURE:例外が発生してビルドに失敗しました
C:\[ProjectName]>gradlew :lint
Starting a Gradle Daemon, 1 incompatible and 3 stopped Daemons could not be reused, use --status for details
Incremental java compilation is an incubating feature.
FAILURE: Build failed with an exception.
* What went wrong:
Task 'lint' not found in root project '[ProjectName]'. Some candidates are: 'init'.
* Try:
Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 1 mins 27.334 secs
:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Could not find tools.jar. Please check that C:\Program Files\Java\jre1.8.0_151 contains a valid JDK installation.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
私はすべてのソリューションを検索することはできません。gradlew lint
は私がエラーを取得
しかし、私はエラーを取得していますオンライン。
ラン 'gradlew lint'上
:私は' gradlew lint' –echo %JAVA_HOME%
、それが正しい構文は次のとおりですので、 – Beginner
ポストそのエラーしてくださいを使用したとき、私は別のエラーを取得しています –