Can't get rid of this error: "app:processDebugResources" - java

I already tried looking for an answer, found some, but none of them fixed my issue. I have no idea what I'm doing, I'm just trying to change some colors and icons, nothing to serious, never compiled something for Android before. What I'm trying to compile is: https://github.com/dkim0419/SoundRecorder. If I open it in Eclipse, Android Studio or just use the terminal to compile it, shouldn't it just compile? With no issues? I have my path set (my current path to Android SDK is /home/alex/Android/Sdk and NDK is /home/alex/Android/Ndk). I just can't get rid of it. I even tried creating a blank test project and tried to compile it and got the same error. Is there something very obvious and stupid that I am missing?
This is what happens when I try to build the application:
alex#alex-Aspire-1640:~/Code/SoundRecorder-master$ ./gradlew build
:app:preBuild
:app:compileDebugNdk
:app:preDebugBuild
:app:checkDebugManifest
:app:preReleaseBuild
:app:prepareComAndroidSupportAppcompatV72102Library
:app:prepareComAndroidSupportCardviewV72103Library
:app:prepareComAndroidSupportRecyclerviewV72103Library
:app:prepareComAndroidSupportSupportV42103Library
:app:prepareComJpardogoMaterialtabstripLibrary106Library
:app:prepareComMelnykovFloatingactionbutton110Library
:app:prepareDebugDependencies
:app:compileDebugAidl
:app:compileDebugRenderscript
:app:generateDebugBuildConfig
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets
:app:generateDebugResValues
:app:generateDebugResources
:app:mergeDebugResources
/home/alex/Code/SoundRecorder-master/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/21.0.2/res/drawable-xhdpi/abc_ab_share_pack_holo_dark.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/home/alex/Code/SoundRecorder-master/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/21.0.2/res/drawable-hdpi/abc_spinner_mtrl_am_alpha.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/home/alex/Code/SoundRecorder-master/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/21.0.2/res/drawable-mdpi/abc_ab_share_pack_holo_dark.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/home/alex/Code/SoundRecorder-master/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/21.0.2/res/drawable-hdpi/abc_ab_share_pack_holo_light.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/home/alex/Code/SoundRecorder-master/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/21.0.2/res/drawable-hdpi/abc_ab_share_pack_holo_dark.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/home/alex/Code/SoundRecorder-master/app/src/main/res/drawable/icon_web.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/home/alex/Code/SoundRecorder-master/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/21.0.2/res/drawable-xhdpi/abc_ab_share_pack_holo_light.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
:app:processDebugManifest
:app:processDebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
/home/alex/Android/Sdk/build-tools/21.1.1/aapt package -f --no-crunch -I /home/alex/Android/Sdk/platforms/android-21/android.jar -M /home/alex/Code/SoundRecorder-master/app/build/intermediates/manifests/full/debug/AndroidManifest.xml -S /home/alex/Code/SoundRecorder-master/app/build/intermediates/res/debug -A /home/alex/Code/SoundRecorder-master/app/build/intermediates/assets/debug -m -J /home/alex/Code/SoundRecorder-master/app/build/generated/source/r/debug -F /home/alex/Code/SoundRecorder-master/app/build/intermediates/res/resources-debug.ap_ --debug-mode --custom-package com.danielkim.soundrecorder -0 apk --output-text-symbols /home/alex/Code/SoundRecorder-master/app/build/intermediates/symbols/debug
Error Code:
132
* 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: 53.214 secs

Related

AAPT2 error: check logs for details AGPBI

Executing tasks: [clean, :app:assembleDebug]
:clean UP-TO-DATE
:app:clean
:app:preBuild UP-TO-DATE
:app:preDebugBuild
:app:compileDebugAidl
:app:compileDebugRenderscript
:app:checkDebugManifest
:app:generateDebugBuildConfig
:app:prepareLintJar UP-TO-DATE
:app:mainApkListPersistenceDebug
:app:generateDebugResValues
:app:generateDebugResources
:app:mergeDebugResources
:app:createDebugCompatibleScreenManifests
:app:processDebugManifest
C:\Users\Marco\AndroidStudioProjects\ClassFinding\app\src\main\AndroidManifest.xml:39:9-41:45 Warning:
Element meta-data#android.support.PARENT_ACTIVITY at AndroidManifest.xml:39:9-41:45 duplicated with element declared at AndroidManifest.xml:31:9-33:45
:app:splitsDiscoveryTaskDebug
AGPBI: {"kind":"error","text":"error: resource drawable/ic_launcher_background (aka com.example.venturicompany.classfinding:drawable/ic_launcher_background) not found.","sources":[{"file":"C:\\Users\\Marco\\AndroidStudioProjects\\ClassFinding\\app\\src\\main\\res\\mipmap-anydpi-v26\\ic_launcher.xml","position":{"startLine":2}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"error: resource drawable/ic_launcher_background (aka com.example.venturicompany.classfinding:drawable/ic_launcher_background) not found.","sources":[{"file":"C:\\Users\\Marco\\AndroidStudioProjects\\ClassFinding\\app\\src\\main\\res\\mipmap-anydpi-v26\\ic_launcher_round.xml","position":{"startLine":2}}],"original":"","tool":"AAPT"}
:app:processDebugResources
error: failed linking file resources.
:app:processDebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Failed to process resources, see aapt output above for details.
* 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 10s
15 actionable tasks: 13 executed, 2 up-to-date
I tried already with "android.enableAapt2=false", but Android Studio doesn't allow me to disable it.
How can I navigate past this problem?
I'm using the most up to date version of Android studio.
the Mainfest.xml is wrongful:
Element meta-data#android.support.PARENT_ACTIVITY at AndroidManifest.xml:39
duplicated with element declared at AndroidManifest.xml:31
{"kind":"error","text":"error: resource
drawable/ic_launcher_background (aka
com.example.venturicompany.classfinding:drawable/ic_launcher_background)
not found
It's looking for ic_launcher_background which couldn't be found. However, place the ic launcher icon in /mipmap directory. Then, use Android Studio's image Assets to create the background-foreground icon. It will create the background for ic launcher too.
However, it seems like it is defined twice too:
AndroidManifest.xml:39:9-41:45 duplicated with element declared at
AndroidManifest.xml:31:9-33:45
Which needs to be checked.
This line shows clearly
C:\Users\Marco\AndroidStudioProjects\ClassFinding\app\src\main\AndroidManifest.xml:39:9-41:45 Warning:
Element meta-data#android.support.PARENT_ACTIVITY at AndroidManifest.xml:39:9-41:45 duplicated with element declared at
AndroidManifest.xml:31:9-33:45
:app:splitsDiscoveryTaskDebug
AGPBI: {"kind":"error","text":"error: resource drawable/ic_launcher_background (aka com.example.venturicompany.classfinding:drawable/ic_launcher_background) not found.","sources":[{"file":"C:\\Users\\Marco\\AndroidStudioProjects\\ClassFinding\\app\\src\\main\\res\\mipmap-anydpi-v26\\ic_launcher.xml","position":{"startLine":2}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"error: resource drawable/ic_launcher_background (aka com.example.venturicompany.classfinding:drawable/ic_launcher_background) not found.","sources":[{"file":"C:\\Users\\Marco\\AndroidStudioProjects\\ClassFinding\\app\\src\\main\\res\\mipmap-anydpi-v26\\ic_launcher_round.xml","position":{"startLine":2}}],"original":"","tool":"AAPT"}
Since you had not posted your manifest show i need to assume that at line number 39 duplicate element is been declared or their is something wrong with your ic launcher image
if want to set app icon then you can do by following
1)click on new
2)click on image asset
3)choose your image
4)click finish
5)New image will be available for app icon
6)if you had set new name then change the manifest with your new name
I think you had choose new image and does not change your manifest for new image(maybe this was the problem)

Gradle build fails with NoClassDefFoundError for sun.awt.X11GraphicsEnvironment in :mergeDebugResources

I always get this error when I try to build microG:
$ ./gradlew build
Skipping debug jar:microg-ui-tools:preBuild UP-TO-DATE
:microg-ui-tools:preDebugBuild UP-TO-DATE
:microg-ui-tools:checkDebugManifest
:microg-ui-tools:preDebugAndroidTestBuild UP-TO-DATE
:microg-ui-tools:preDebugUnitTestBuild UP-TO-DATE
:microg-ui-tools:preReleaseBuild UP-TO-DATE
:microg-ui-tools:preReleaseUnitTestBuild UP-TO-DATE
:microg-ui-tools:prepareComAndroidSupportAnimatedVectorDrawable2531Library
:microg-ui-tools:prepareComAndroidSupportAppcompatV72531Library
:microg-ui-tools:prepareComAndroidSupportPreferenceV142531Library
:microg-ui-tools:prepareComAndroidSupportPreferenceV72531Library
:microg-ui-tools:prepareComAndroidSupportRecyclerviewV72531Library
:microg-ui-tools:prepareComAndroidSupportSupportCompat2531Library
:microg-ui-tools:prepareComAndroidSupportSupportCoreUi2531Library
:microg-ui-tools:prepareComAndroidSupportSupportCoreUtils2531Library
:microg-ui-tools:prepareComAndroidSupportSupportFragment2531Library
:microg-ui-tools:prepareComAndroidSupportSupportMediaCompat2531Library
:microg-ui-tools:prepareComAndroidSupportSupportV42531Library
:microg-ui-tools:prepareComAndroidSupportSupportVectorDrawable2531Library
:microg-ui-tools:prepareComTakisoftFixPreferenceV725310Library
:microg-ui-tools:prepareDebugDependencies
:microg-ui-tools:compileDebugAidl UP-TO-DATE
:microg-ui-tools:compileDebugNdk UP-TO-DATE
:microg-ui-tools:compileLint UP-TO-DATE
:microg-ui-tools:copyDebugLint UP-TO-DATE
:microg-ui-tools:compileDebugRenderscript UP-TO-DATE
:microg-ui-tools:generateDebugBuildConfig UP-TO-DATE
:microg-ui-tools:generateDebugResValues UP-TO-DATE
:microg-ui-tools:generateDebugResources UP-TO-DATE
:microg-ui-tools:mergeDebugResources
java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
:microg-ui-tools:mergeDebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':microg-ui-tools:mergeDebugResources'.
> java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
* 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.932 secs
This is on a headless server that doesn't even have an X server installed! This happens for release (except with mergeReleaseResources) as well. I tried running with --info and --debug but it didn't give me anything useful. I've also tried switching to use Oracle's JDK instead of OpenJDK and installing a local X server on the machine building but that didn't change anything either. This is on a freshly cloned copy of the repo, although I don't think the error is specific to microG.
Here are my results running ./gradlew build --stacktrace: https://gist.github.com/milkey-mouse/cb6b75b5116cf369603dec46e214e914
You can try adding -Djava.awt.headless=true to your jvmargs in gradle.properties file:
org.gradle.jvmargs=-Djava.awt.headless=true
Also please take a look at example here.
Here is the similar question, but not related to Gradle.

Gradle error after import module library

Here is what I got from the error message:
Information:Gradle tasks [clean, :app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :library:generateDebugSources, :library:generateDebugAndroidTestSources, :library:mockableAndroidJar, :library:prepareDebugUnitTestDependencies]
Error:Some file crunching failed, see logs for details
Error:Execution failed for task ':app:mergeDebugResources'.> Error: Some file crunching failed, see logs for details
Information:BUILD FAILED
Information:Total time: 3.008 secs
Information:2 errors
Information:0 warnings
Information:See complete output in console
message :
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.>
Error: Some file crunching failed, see logs 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
Total time: 3.212 secs
Executing tasks: [clean, :app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :library:generateDebugSources, :library:generateDebugAndroidTestSources, :library:mockableAndroidJar, :library:prepareDebugUnitTestDependencies]
Parallel execution with configuration on demand is an incubating feature.
Using the 'clean' task in combination with parallel execution may lead to unexpected runtime behavior.
Incremental java compilation is an incubating feature.
:clean
:app:clean
:library:clean
:library:preBuild UP-TO-DATE
:library:preReleaseBuild UP-TO-DATE
:library:checkReleaseManifest
:library:preDebugAndroidTestBuild UP-TO-DATE
:library:preDebugBuild UP-TO-DATE
:library:preDebugUnitTestBuild UP-TO-DATE
:library:preReleaseUnitTestBuild UP-TO-DATE
:library:prepareComAndroidSupportAnimatedVectorDrawable2531Library
:library:prepareComAndroidSupportAppcompatV72531Library
:library:prepareComAndroidSupportSupportCompat2531Library
:library:prepareComAndroidSupportSupportCoreUi2531Library
:library:prepareComAndroidSupportSupportCoreUtils2531Library
:library:prepareComAndroidSupportSupportFragment2531Library
:library:prepareComAndroidSupportSupportMediaCompat2531Library
:library:prepareComAndroidSupportSupportV42531Library
:library:prepareComAndroidSupportSupportVectorDrawable2531Library
:library:prepareReleaseDependencies
:library:compileReleaseAidl
:library:compileLint
:library:copyReleaseLint UP-TO-DATE
:library:mergeReleaseShaders
:library:compileReleaseShaders
:library:generateReleaseAssets
:library:mergeReleaseAssets
:library:mergeReleaseProguardFiles UP-TO-DATE
:library:packageReleaseRenderscript UP-TO-DATE
:library:compileReleaseRenderscript
:library:generateReleaseResValues
:library:generateReleaseResources
:library:packageReleaseResources
:library:processReleaseManifest
:library:bundleRelease
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAnimatedVectorDrawable2531Library
:app:prepareComAndroidSupportAppcompatV72531Library
:library:checkDebugManifest
:app:prepareComAndroidSupportConstraintConstraintLayout101Library
:library:prepareDebugDependencies
:library:compileDebugAidl
:app:prepareComAndroidSupportDesign2531Library
:app:prepareComAndroidSupportRecyclerviewV72531Library
:app:prepareComAndroidSupportSupportCompat2531Library
:library:compileDebugRenderscript
:app:prepareComAndroidSupportSupportCoreUi2531Library
:app:prepareComAndroidSupportSupportCoreUtils2531Library
:app:prepareComAndroidSupportSupportFragment2531Library
:app:prepareComAndroidSupportSupportMediaCompat2531Library
:library:generateDebugBuildConfig
:app:prepareComAndroidSupportSupportV42531Library
:app:prepareComAndroidSupportSupportVectorDrawable2531Library
:library:generateDebugResValues
:app:prepareComAndroidSupportTransition2531Library
:library:generateDebugResources
:library:mergeDebugResources
:app:prepareComJakewhartonButterknife881Library
:app:prepareDebugDependencies
:app:compileDebugAidl
:app:compileDebugRenderscript
:app:generateDebugBuildConfig
:app:generateDebugResValues
:app:generateDebugResources
:app:mergeDebugResources
AAPT: libpng error: Not a PNG file
:library:processDebugManifest
:library:processDebugResources
Error: Some file crunching failed, see logs for details
:app:mergeDebugResources FAILED
How to solve it?
Check your drawable resource/images bundled. One of them or few of them might not be the proper .png files
AAPT: libpng error: Not a PNG file
Solution open the file which is not correct in an editor and save it with same name and correct .png extension.
You should comment org.gradle.parallel = true in gradle.properties.

App won't build? DebugResources error?

Here is my problem
Can anyone help?
Ive tried changing the build version on gradle but it still doesnt run
[1] http://imgur.com/U5CP8rO
BUILD FAILED
Total time: 11.872 secs
Executing tasks: [:app:compileDebugSources, :app:compileDebugAndroidTestSources]
Configuration on demand is an incubating feature.
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72300Library UP-TO-DATE
:app:prepareComAndroidSupportDesign2300Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42300Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources
AAPT err(Facade for 1220063698): libpng error: Not a PNG file
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> Some file crunching failed, see logs 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
Total time: 11.771 secs
WHEN I TRY TO CLEAN BUILD:
Executing tasks: [clean, :app:generateDebugSources, :app:generateDebugAndroidTestSources]
Configuration on demand is an incubating feature.
:clean
:app:clean
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72300Library FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:prepareComAndroidSupportAppcompatV72300Library'.
> Failed to create parent directory 'P:\BudgetWiseApp\app\build' when creating directory 'P:\BudgetWiseApp\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.0.0'
* 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: 13.896 secs
Your log shows this:
AAPT err(Facade for 1220063698): libpng error: Not a PNG file
This means that somewhere you have an image resource that is not a PNG.
The log usually shows which file is causing the problem, but you might need to run with the --stacktrace option (e.g. gradlew assembleDebug --stacktrace).
If that still doesn't show the file name, you will need to look through your drawable folders for images that aren't PNGs.
Build -> Clean Project
Build -> Rebuild Project
make sure the images in your drawable is in png format.
you can convert any image in png format just by opening with a image editor and save as png.

:app:compileDebugUnitTestJavaWithJavac FAILED Android Studio

I have searched to a good degree on stack overflow etc to try find an answer to my question. I have so far been unable to find any solution that works for my specific problem.
Up until the 5th of February, When I ran the command:
.\gradlew test
The command would complete and the build would be successful. Today (7th), I pulled changes from my teams remote repo. When I ran the command I would get the below output:
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72311Library UP-TO-DATE
:app:prepareComAndroidSupportDesign2311Library UP-TO-DATE
:app:prepareComAndroidSupportRecyclerviewV72311Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42311Library UP-TO-DATE
:app:prepareComJourneyappsZxingAndroidEmbedded310Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources UP-TO-DATE
:app:generateDebugSources UP-TO-DATE
:app:compileDebugJavaWithJavac UP-TO-DATE
:app:preDebugUnitTestBuild UP-TO-DATE
:app:prepareDebugUnitTestDependencies
:app:compileDebugUnitTestJavaWithJavac FAILED
BUILD FAILED
Total time: 5.804 secs
I created a new branch to see if I could figure out what commit was causing the issue, however, when I checked out a commit that I knew for certain did not contain issues (the commit I had previously been at) and attempted to run the command I would get similar output.
Similarly I used to be able to simply right click on my test file and select "Run whateverTest.java" and the test would run.
Now when I attempt the same thing I get the following output:
!!! JUnit version 3.8 or later expected:
java.lang.RuntimeException: Stub!
at junit.runner.BaseTestRunner.<init>(BaseTestRunner.java:5)
at junit.textui.TestRunner.<init>(TestRunner.java:54)
at junit.textui.TestRunner.<init>(TestRunner.java:48)
at junit.textui.TestRunner.<init>(TestRunner.java:41)
at com.intellij.rt.execution.junit.JUnitStarter.junitVersionChecks(JUnitStarter.java:191)
at com.intellij.rt.execution.junit.JUnitStarter.canWorkWithJUnitVersion(JUnitStarter.java:174)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:57)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
Process finished with exit code -3
Now I must select the file and select "Run..." from the run tile. This will run my tests successfully.
I have attempted the ususal build, clean restart computer etc. I have also attempted to create a JAVA_HOME and ANDROID_JAVA_HOME environment variable (under recommendation of similar questions).
Since that time the only thing that sticks out to me is that there was a java update. I suspect this may be the cause but I am not certain.
I would appreciate any help and I can provide any more details that are required.
Thanks.
UPDATE
For more context here is more of the output from .\gradlew test
* What went wrong:
Execution failed for task ':app:compileDebugUnitTestJavaWithJavac'.
> Could not find tools.jar
Hopefully this gives better context.
SOLVED
Problem was solved by uninstalling both Java and Android Studio and then reinstalling them.
I believe there was a path hidden somewhere in Android Studio that I was unable to change that took a reinstall for me to be prompted to select.

Categories