I'm having a problem getting my project to build. I get the message:
"A problem was found with the configuration of task ':app:kaptDebugKotlin'.
Cannot write to file 'C:\Workspace\depot\RM12\Mobile\AppSuite\Android\Working11\AppSuite\app\build\intermediates\data-binding\debug\bundle-bin' specified for property 'dataBindingArtifactOutputDir' as it is a directory"
This build issue won't occur for my first build after I clean the project, but if I try to build a second time I get this error. Which makes me do a clean and rebuild every time I need to run the project.
It occurs in some branches for me, while others don't seem to have this issue, and my coworkers have never seen this error. Which likely means this has something to do with my workspace.
I've done some research but haven't come across anything that has helped at all.
Please help me!!!
Related
I have a multimodule project.
It worked fine for some times, but now I have this error from time to time:
Failed to copy full contents from 'C:\StudioProjects\project1\android\features\media\integration\build\intermediates\data_binding_base_class_log_artifact\debug\out\com.example.media-binding_classes.json' to 'C:\StudioProjects\project1\android\features\authorized_zone\feature\build\intermediates\data_binding_base_class_logs_dependency_artifacts\debug\com.example.media-binding_classes.json'
Clean & Rebuild soves the problem. Sometimes several rebuilds is required.
The error was initially in one module, some random changes in one of its layout seems to fix the problem. But now the same error appears in two other modules.
What doews this error means and how to fix it?
I have been trying to build my project for sometime now and each time i try to build it i get the error and a file comes up that i have no idea about (debug/AndroidManifest.xml)
I have invalidated caches and restarted several times to no avail.
i have cleaned the project several times and still getting the same. I even went further to toggle my build variants between release and debug. Still no solution
see the screenshot below
aapt error unexcepted element.
it means in the wrong level.
check or remove it.
Your intent filter is in wrong place. Where it shows that you commented out the activity which was supposed to use the intent. remove the line and build again.
Does anyone of you guys know this exception in Gradle build?
Error:Execution failed for task ':app:mergeDebugResources'.
> java.lang.ArrayIndexOutOfBoundsException (no error message)
My project worked fine, until I implemented a Video player in a new activity that parses a MP4 file from the SD-Card. Then I got this exception. After that I updated Android Studio, I cleaned the project, I relocated it, I rebuilt it. This all didn´t solve the problem.
Then I uncommented path calls for the case that this error happens because the generated build file path exceeds the windows max path length of 255 characters. This also didn´t work.
I would be thankful for any hint!
I just changed my libraries to latest version and problem solved. for me it was 25.1.1 and i changed them to 25.2.0
compile 'com.android.support:appcompat-v7:[latest-version]'
compile 'com.android.support:design:[latest-version]'
compile 'com.android.support:support-v4:[latest-version]'
compile 'com.android.support:cardview-v7:[latest-version]'
compile 'com.android.support:recyclerview-v7:[latest-version]'
Hope helps someone ;)
Updating the Android Studio doesn't update the gradle version. You have to manually do it. In your project level build.gradle file, replace the gradle dependency with this version:
classpath 'com.android.tools.build:gradle:2.1.2'
If you guys now feeling tired after applying everything please do one thing
create a new project and shift all your code to that new project(if possible) but keep one thing in mind that start with classes and layout files and after every step run your code to check and which icons you need from drawables copy that into your project and run after every small step.
All in all i want to say you personally i have wasted so much time in this problem and this solution looks complex but this will take few hours but give 100% solution of your problem.
Why we follow this long process?
many times what happened that we keep on writing the code and studio keep on accepting everything but at any day any random time(when R file regenerat) studio does not accept some of the things but you never came to know where you miss something that's why in some cases this approach might be look easy instead applying hit and try.
I have no Idea what is happening, last time when I finished my app I build its release apk and all was working just fine as expected but now today when I tried to make that pproject again and to make another apk I am getting the following error.
Error:Execution failed for task ':app:mergeDebugResources'.
Crunching Cruncher common_signin_btn_icon_pressed_light.9.png failed, see logs
I have no idea how to resolve it I have serached and found restarting Android studio and clean the project would remove it , doing this many times has no effect on this error. I have even restarted my machine but the condition of error in same.
In the logs I have seen that this png file is from the library I added , so just for testing I removed that library and tried to build then it started to give me same error with different png file name in other library. So how to fix this issue ?
My Questions are :
How can this issue be Solved ?
Have some one faced this problem too ?
Is this problem has been reported to google ?
Why in android we do not have any stable platform for development as IOS have ?
Try to remove "builds" folders and do rebuild. But soon, the whole thing in a long file name. Read this answer. By the way, you looked logs? Maybe this is not the PNG? You have not sent the log and did not specify the version Gradle.
Believe me, iOS developers have own problems.
This error during the export process is driving me crazy. It appeared after updating the ADT and adding ActionBarSherlock library, not sure which one is causing the trouble. I've already removed all the libraries and added them again, I've created a new project and copied the code over, didn't work either.
What other things can I try? (And don't tell me clean the project I've done that thousends of times)
This really sounds as though it can't be true but it works for me, so hopefully it also works for you if the problem isn't related to library linking stuff...
When you are in Eclipse, just turn off automatic build and then export without getting this error.