Android Studio doesn't execute build.gradle -


if add println("hello world!") build.gradle (the 1 in root directory) in android studio, , execute gradlew command-line, "hello world!". however, clicking green arrow in ide not result in being printed. also, if generate text file, executing gradlew generate text file.

i'm trying understand magic ide doing. gradle tasks executed when click on green button? how configure this? gets printed out ide's console?

when being run in android studio, gradle's stdout can find print statement "gradle console". hover on square in bottom left of android studio window , you'll see lots of options select things console, maven, event log, etc. select gradle console , should see output when running command line.

if still don't see statement being logged, chances isn't configured correctly inside android studio project. try synching project gradle build file going top menu bar , (on mac) tools > android > sync project gradle files.

if there no errors in process should able see output in gradle console.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -