However running the project breaks the build with following message.
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring project ':app'.
> A problem occurred configuring project ':deps:setbrightness'.
> Could not resolve all dependencies for configuration ':deps:setbrightness:classpath'.
> Could not find com.android.tools.build:gradle:null.
Searched in the following locations:
http://repo1.maven.org/maven2/com/android/tools/build/gradle/null/gradle-null.pom
http://repo1.maven.org/maven2/com/android/tools/build/gradle/null/gradle-null.jar
Required by:
bin.deps:setbrightness:unspecified
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Oh, yeah. I noticed that a couple months back, but I guess we never did anything about it.
I should go follow up on that. In the meantime, all you need to do is open up SetBrightness/dependencies/android/build.gradle, find the line that looks like this:
Ahh! Thanks.
Now I get past the old error but got a new one.
Export\android\release\bin\deps\setbrightness\src\main\java\org\haxe\extension\SetBrightness.java:139: package WindowManager does not exist
WindowManager.LayoutParams layout = Extension.mainActivity.getWindow().getAttributes();
^
1 error
:deps:setbrightness:compileReleaseJavaWithJavac FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':deps:setbrightness:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED