I just wanted to build my app in Android Studio. However, after I changed somethings in my XML files, now it is giving the following error:
FAILURE: Build failed with an exception.
* What went wrong:
java.io.IOException: Argument list too long
> Argument list too long
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 2.827 secs
I don't know what this is. I've searched a lot on the Internet, but couldn't find a solution.
Try with Build > Clean project, then Rebuild. Android Studio is not yet a finished product.
Related
I wanted to see CoroutineWorker (androidx.work:work-runtime-ktx:2.2.0) class code sources, but android studio (tried on versions: 4.1.3 and smaller) show decompiled version of that:
When I click download sources Gradle shows such error:
FAILURE: Build failed with an exception.
* Where:
Initialization script '/tmp/ijmiscinit4.gradle' line: 20
* What went wrong:
Execution failed for task ':app:DownloadSources'.
> Could not resolve all files for configuration ':app:downloadSources_2108a026-03c6-4d30-a902-3a53b9d5d155'.
> Could not find androidx.work:work-runtime-ktx:2.2.0#aar.
Required by:
project :app
* 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 1s
Could you please help what I am doing wrong here?
Second issue: even if sources are downloaded, AndroidStudio still won't attach them, here I've described that issue in detail.
I accidental ran
./gradlew heck
instead of "check"
now I get the build error
FAILURE: Build failed with an exception.
* What went wrong:
Could not read settings file '/home/.../ProjectFolder/heck' as it does not exist.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
What the heck? I just wanted to check!
I just ran into a similar problem, except I was running this:
gradle -clean build.
And getting an error that it couldn't find the file "lean".
See our problem?
We both accidentally called the "--settings-file" option, which is abbreviated by "-c".
Get rid of the dash, and your world will be good again.
As mine is now.
:-)
I am working on Android Video Streaming.I found this examples online here https://github.com/red5pro/red5pro-android-app
I want to debug this application but its gives me error :
FAILURE: Build failed with an exception.
What went wrong:
A problem was found with the configuration of task ':Red5Pro:zipalignDebug'.
File 'D:\WorkSpace\Android\red5pro-android-app-master\red5pro-android-app-master\Red5Pro\build\outputs\apk\Red5Pro-debug-unaligned.apk' specified for property 'inputFile' does not exist.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
How i can figureout this error ?
change third file'name to second file'name!
Is there a way to customize Android Studio so that Gradle always runs with the compileDebug flag?
Anyone running the new Android Studio has likely seen the following error. The only solution I've found is to run gradlew compileDebug from the command line. Keeping a console window open all the time is a very poor workflow. Is there no way to display build errors within the IDE?
Gradle:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':TestProj:compileDebug'.
> 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.
I try an android studio. It is ok at the beginning. When I do a activity with many java content, it cannot run the program. It has the below error:
Gradle:
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':ImageCropper:compileDebug'.
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.
Could not execute build using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.6-bin.zip'.
After I comment the code it is ok. There is no problem with code. How to deal with this?