Friday, December 14, 2018

Android : Gradle, how to give arguments?

While building project, met with an issue which eventually said run with --stacktrace or --info or --debug option to get more details.

The detail of the error on app building was like below. To add arguments to the cradle, one of the option is below



Error:Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformClassesWithInstantRunForDebug'.
> java.lang.NoClassDefFoundError (no error message)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 57s

No comments:

Post a Comment