-
Notifications
You must be signed in to change notification settings - Fork 79
Error while adding spoon plugin to build.gradle #80
Comments
Sorry @Mateuszg7. I missed this when you posted the issue. The problem is that this plugin does not really support APK splits and expects one possible output for each variant. |
👍 |
we also have this issue. is there any way around it? We are doing: |
just as a reference for anyone with the same problem, we "solved" it now with this piece of code: |
@saruye i have the same problem too.where in gradle file did you put the "afterEvaluate { if(gradle.startParameter.taskNames.contains("spoon")){ apply plugin: 'spoon' } }"? |
@barontxu |
So, I've been strugging with this problem for awhile. The app is using APK splits, and we've been using the universal apk for testing and deploying to fabric beta (with some hacks to send the the universal apk), but haven't had any success getting it to work with spoon-gradle. By combining the approach here - https://code.google.com/p/android/issues/detail?id=76469 - that is to say, turning off split apk's for debug builds, combined with using afterEvaluate taken from here, I've now got:
So:
|
@saruye thank you! |
@mandrachek seems like a great idea that fit my situation, i'll take the piece of code into my project, thank you! |
I solved it in a very similar way as @mandrachek. I am not sure if I need
I am using split apk only to build a release |
@michael-mohemian thanks for sharing!Seems like a graceful idea. |
@michael-mohemian man your answer is awesome, the after evaluate answer makes spoon config unavailable but yours works great.Thanks so much for sharing. |
release 1.0.50
While adding line apply plugin: 'spoon' to build.gradle(Module: app) and syncing I have that error:
"Error:Cannot add task ':app:spoonDebugAndroidTest' as a task with that name already exists."
I found why this is happening. It's related to this in build.gradle:
The text was updated successfully, but these errors were encountered: