Hello everybody,
I have a quite complex project that is made up of many different modules
and libraries (amongst them ActionBarSherlock and HoloEverywhere).
The project has been ported to Android Studio and it builds fine as long as
I do not add flavors.
As soon as I add flavors, it stops building and the result is the following
error:
imacvalerio:groupalia-android tanis$ gradle build
:ActionBarSherlock:compileLint
:ActionBarSherlock:copyDevDebugLint UP-TO-DATE
:ActionBarSherlock:mergeDevDebugProguardFiles UP-TO-DATE
:ActionBarSherlock:preBuild
:ActionBarSherlock:preDevDebugBuild
:ActionBarSherlock:checkDevDebugManifest
:ActionBarSherlock:prepareDevDebugDependencies
:ActionBarSherlock:compileDevDebugAidl UP-TO-DATE
:ActionBarSherlock:compileDevDebugRenderscript UP-TO-DATE
:ActionBarSherlock:generateDevDebugBuildConfig UP-TO-DATE
:ActionBarSherlock:generateDevDebugAssets UP-TO-DATE
:ActionBarSherlock:mergeDevDebugAssets UP-TO-DATE
:ActionBarSherlock:generateDevDebugResValues UP-TO-DATE
:ActionBarSherlock:generateDevDebugResources UP-TO-DATE
:ActionBarSherlock:packageDevDebugResources UP-TO-DATE
:ActionBarSherlock:processDevDebugManifest UP-TO-DATE
:ActionBarSherlock:processDevDebugResources UP-TO-DATE
:ActionBarSherlock:generateDevDebugSources UP-TO-DATE
:ActionBarSherlock:compileDevDebugJava UP-TO-DATE
:ActionBarSherlock:processDevDebugJavaRes UP-TO-DATE
:ActionBarSherlock:packageDevDebugJar UP-TO-DATE
:ActionBarSherlock:compileDevDebugNdk UP-TO-DATE
:ActionBarSherlock:packageDevDebugJniLibs UP-TO-DATE
:ActionBarSherlock:packageDevDebugLocalJar UP-TO-DATE
:ActionBarSherlock:packageDevDebugRenderscript UP-TO-DATE
:ActionBarSherlock:bundleDevDebug
:ActionBarSherlock:assembleDevDebug
:ActionBarSherlock:copyProdDebugLint UP-TO-DATE
:ActionBarSherlock:mergeProdDebugProguardFiles UP-TO-DATE
:ActionBarSherlock:preProdDebugBuild
:ActionBarSherlock:checkProdDebugManifest
:ActionBarSherlock:prepareProdDebugDependencies
:ActionBarSherlock:compileProdDebugAidl UP-TO-DATE
:ActionBarSherlock:compileProdDebugRenderscript UP-TO-DATE
:ActionBarSherlock:generateProdDebugBuildConfig UP-TO-DATE
:ActionBarSherlock:generateProdDebugAssets UP-TO-DATE
:ActionBarSherlock:mergeProdDebugAssets UP-TO-DATE
:ActionBarSherlock:generateProdDebugResValues UP-TO-DATE
:ActionBarSherlock:generateProdDebugResources UP-TO-DATE
:ActionBarSherlock:packageProdDebugResources UP-TO-DATE
:ActionBarSherlock:processProdDebugManifest UP-TO-DATE
:ActionBarSherlock:processProdDebugResources UP-TO-DATE
:ActionBarSherlock:generateProdDebugSources UP-TO-DATE
:ActionBarSherlock:compileProdDebugJava UP-TO-DATE
:ActionBarSherlock:processProdDebugJavaRes UP-TO-DATE
:ActionBarSherlock:packageProdDebugJar UP-TO-DATE
:ActionBarSherlock:compileProdDebugNdk UP-TO-DATE
:ActionBarSherlock:packageProdDebugJniLibs UP-TO-DATE
:ActionBarSherlock:packageProdDebugLocalJar UP-TO-DATE
:ActionBarSherlock:packageProdDebugRenderscript UP-TO-DATE
:ActionBarSherlock:bundleProdDebug
:ActionBarSherlock:assembleProdDebug
:ActionBarSherlock:copyStageDebugLint UP-TO-DATE
:ActionBarSherlock:mergeStageDebugProguardFiles UP-TO-DATE
:ActionBarSherlock:preStageDebugBuild
:ActionBarSherlock:checkStageDebugManifest
:ActionBarSherlock:prepareStageDebugDependencies
:ActionBarSherlock:compileStageDebugAidl UP-TO-DATE
:ActionBarSherlock:compileStageDebugRenderscript UP-TO-DATE
:ActionBarSherlock:generateStageDebugBuildConfig UP-TO-DATE
:ActionBarSherlock:generateStageDebugAssets UP-TO-DATE
:ActionBarSherlock:mergeStageDebugAssets UP-TO-DATE
:ActionBarSherlock:generateStageDebugResValues UP-TO-DATE
:ActionBarSherlock:generateStageDebugResources UP-TO-DATE
:ActionBarSherlock:packageStageDebugResources UP-TO-DATE
:ActionBarSherlock:processStageDebugManifest UP-TO-DATE
:ActionBarSherlock:processStageDebugResources UP-TO-DATE
:ActionBarSherlock:generateStageDebugSources UP-TO-DATE
:ActionBarSherlock:compileStageDebugJava UP-TO-DATE
:ActionBarSherlock:processStageDebugJavaRes UP-TO-DATE
:ActionBarSherlock:packageStageDebugJar UP-TO-DATE
:ActionBarSherlock:compileStageDebugNdk UP-TO-DATE
:ActionBarSherlock:packageStageDebugJniLibs UP-TO-DATE
:ActionBarSherlock:packageStageDebugLocalJar UP-TO-DATE
:ActionBarSherlock:packageStageDebugRenderscript UP-TO-DATE
:ActionBarSherlock:bundleStageDebug
:ActionBarSherlock:assembleStageDebug
:ActionBarSherlock:assembleDebug
:ActionBarSherlock:copyDevReleaseLint UP-TO-DATE
:ActionBarSherlock:mergeDevReleaseProguardFiles UP-TO-DATE
:ActionBarSherlock:preDevReleaseBuild
:ActionBarSherlock:checkDevReleaseManifest
:ActionBarSherlock:prepareDevReleaseDependencies
:ActionBarSherlock:compileDevReleaseAidl UP-TO-DATE
:ActionBarSherlock:compileDevReleaseRenderscript UP-TO-DATE
:ActionBarSherlock:generateDevReleaseBuildConfig UP-TO-DATE
:ActionBarSherlock:generateDevReleaseAssets UP-TO-DATE
:ActionBarSherlock:mergeDevReleaseAssets UP-TO-DATE
:ActionBarSherlock:generateDevReleaseResValues UP-TO-DATE
:ActionBarSherlock:generateDevReleaseResources UP-TO-DATE
:ActionBarSherlock:packageDevReleaseResources UP-TO-DATE
:ActionBarSherlock:processDevReleaseManifest UP-TO-DATE
:ActionBarSherlock:processDevReleaseResources UP-TO-DATE
:ActionBarSherlock:generateDevReleaseSources UP-TO-DATE
:ActionBarSherlock:compileDevReleaseJava UP-TO-DATE
:ActionBarSherlock:processDevReleaseJavaRes UP-TO-DATE
:ActionBarSherlock:packageDevReleaseJar UP-TO-DATE
:ActionBarSherlock:compileDevReleaseNdk UP-TO-DATE
:ActionBarSherlock:packageDevReleaseJniLibs UP-TO-DATE
:ActionBarSherlock:packageDevReleaseLocalJar UP-TO-DATE
:ActionBarSherlock:packageDevReleaseRenderscript UP-TO-DATE
:ActionBarSherlock:bundleDevRelease
:ActionBarSherlock:assembleDevRelease
:ActionBarSherlock:copyProdReleaseLint UP-TO-DATE
:ActionBarSherlock:mergeProdReleaseProguardFiles UP-TO-DATE
:ActionBarSherlock:preProdReleaseBuild
:ActionBarSherlock:checkProdReleaseManifest
:ActionBarSherlock:prepareProdReleaseDependencies
:ActionBarSherlock:compileProdReleaseAidl UP-TO-DATE
:ActionBarSherlock:compileProdReleaseRenderscript UP-TO-DATE
:ActionBarSherlock:generateProdReleaseBuildConfig UP-TO-DATE
:ActionBarSherlock:generateProdReleaseAssets UP-TO-DATE
:ActionBarSherlock:mergeProdReleaseAssets UP-TO-DATE
:ActionBarSherlock:generateProdReleaseResValues UP-TO-DATE
:ActionBarSherlock:generateProdReleaseResources UP-TO-DATE
:ActionBarSherlock:packageProdReleaseResources UP-TO-DATE
:ActionBarSherlock:processProdReleaseManifest UP-TO-DATE
:ActionBarSherlock:processProdReleaseResources UP-TO-DATE
:ActionBarSherlock:generateProdReleaseSources UP-TO-DATE
:ActionBarSherlock:compileProdReleaseJava UP-TO-DATE
:ActionBarSherlock:processProdReleaseJavaRes UP-TO-DATE
:ActionBarSherlock:packageProdReleaseJar UP-TO-DATE
:ActionBarSherlock:compileProdReleaseNdk UP-TO-DATE
:ActionBarSherlock:packageProdReleaseJniLibs UP-TO-DATE
:ActionBarSherlock:packageProdReleaseLocalJar UP-TO-DATE
:ActionBarSherlock:packageProdReleaseRenderscript UP-TO-DATE
:ActionBarSherlock:bundleProdRelease
:ActionBarSherlock:assembleProdRelease
:ActionBarSherlock:copyStageReleaseLint UP-TO-DATE
:ActionBarSherlock:mergeStageReleaseProguardFiles UP-TO-DATE
:ActionBarSherlock:preStageReleaseBuild
:ActionBarSherlock:checkStageReleaseManifest
:ActionBarSherlock:prepareStageReleaseDependencies
:ActionBarSherlock:compileStageReleaseAidl UP-TO-DATE
:ActionBarSherlock:compileStageReleaseRenderscript UP-TO-DATE
:ActionBarSherlock:generateStageReleaseBuildConfig UP-TO-DATE
:ActionBarSherlock:generateStageReleaseAssets UP-TO-DATE
:ActionBarSherlock:mergeStageReleaseAssets UP-TO-DATE
:ActionBarSherlock:generateStageReleaseResValues UP-TO-DATE
:ActionBarSherlock:generateStageReleaseResources UP-TO-DATE
:ActionBarSherlock:packageStageReleaseResources UP-TO-DATE
:ActionBarSherlock:processStageReleaseManifest UP-TO-DATE
:ActionBarSherlock:processStageReleaseResources UP-TO-DATE
:ActionBarSherlock:generateStageReleaseSources UP-TO-DATE
:ActionBarSherlock:compileStageReleaseJava UP-TO-DATE
:ActionBarSherlock:processStageReleaseJavaRes UP-TO-DATE
:ActionBarSherlock:packageStageReleaseJar UP-TO-DATE
:ActionBarSherlock:compileStageReleaseNdk UP-TO-DATE
:ActionBarSherlock:packageStageReleaseJniLibs UP-TO-DATE
:ActionBarSherlock:packageStageReleaseLocalJar UP-TO-DATE
:ActionBarSherlock:packageStageReleaseRenderscript UP-TO-DATE
:ActionBarSherlock:bundleStageRelease
:ActionBarSherlock:assembleStageRelease
:ActionBarSherlock:assembleRelease
:ActionBarSherlock:assemble
:ActionBarSherlock:lint
Ran lint on variant prodDebug: 17 issues found
Ran lint on variant devRelease: 17 issues found
Ran lint on variant stageDebug: 17 issues found
Ran lint on variant devDebug: 17 issues found
Ran lint on variant prodRelease: 17 issues found
Ran lint on variant stageRelease: 17 issues found
Wrote HTML report to
file:/Users/tanis/Documents/groupalia-android/ActionBarSherlock/build/outputs/lint-results.html
Wrote XML report to
/Users/tanis/Documents/groupalia-android/ActionBarSherlock/build/outputs/lint-results.xml
:ActionBarSherlock:check
:ActionBarSherlock:build
:AndroidBase:compileLint
:AndroidBase:copyDevDebugLint UP-TO-DATE
:AndroidBase:mergeDevDebugProguardFiles UP-TO-DATE
:AndroidBase:preBuild
:AndroidBase:preDevDebugBuild
:AndroidBase:checkDevDebugManifest
:AndroidBase:prepareDevDebugDependencies
:AndroidBase:compileDevDebugAidl UP-TO-DATE
:AndroidBase:compileDevDebugRenderscript UP-TO-DATE
:AndroidBase:generateDevDebugBuildConfig UP-TO-DATE
:AndroidBase:generateDevDebugAssets UP-TO-DATE
:AndroidBase:mergeDevDebugAssets UP-TO-DATE
:AndroidBase:generateDevDebugResValues UP-TO-DATE
:AndroidBase:generateDevDebugResources UP-TO-DATE
:AndroidBase:packageDevDebugResources UP-TO-DATE
:AndroidBase:processDevDebugManifest UP-TO-DATE
:AndroidBase:processDevDebugResources
/Users/tanis/Documents/groupalia-android/AndroidBase/build/intermediates/bundles/dev/debug/res/layout/layout_listview_endless_loading.xml:7:
error: Error: No resource found that matches the given name (at 'style'
with value '@style/Holo.ProgressBar').
:AndroidBase:processDevDebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':AndroidBase:processDevDebugResources'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run
command:
/Applications/Android Studio.app/sdk/build-tools/19.1.0/aapt package -f
--no-crunch -I /Applications/Android
Studio.app/sdk/platforms/android-19/android.jar -M
/Users/tanis/Documents/groupalia-android/AndroidBase/build/intermediates/bundles/dev/debug/AndroidManifest.xml
-S
/Users/tanis/Documents/groupalia-android/AndroidBase/build/intermediates/bundles/dev/debug/res
-A
/Users/tanis/Documents/groupalia-android/AndroidBase/build/intermediates/bundles/dev/debug/assets
-m -J
/Users/tanis/Documents/groupalia-android/AndroidBase/build/generated/source/r/dev/debug
--debug-mode --custom-package com.androidbase --non-constant-id -0 apk
--output-text-symbols
/Users/tanis/Documents/groupalia-android/AndroidBase/build/intermediates/bundles/dev/debug
Error Code:
1
Output:
/Users/tanis/Documents/groupalia-android/AndroidBase/build/intermediates/bundles/dev/debug/res/layout/layout_listview_endless_loading.xml:7:
error: Error: No resource found that matches the given name (at 'style'
with value '@style/Holo.ProgressBar').
* 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: 35.101 secs
imacvalerio:groupalia-android tanis$
All I did was adding in each build.gradle file of every module the
following lines:
productFlavors {
dev {
}
stage {
}
prod {
}
}
I didn't even specify anything different for any of the flavors yet.
Is there anyone who has an idea why the build would break? It looks like
something in the resources inheritance has broken.
Thanks!
Valerio Santinelli
--
You received this message because you are subscribed to the Google Groups
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.