• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps tools:overrideLibrary

jon80

Member
Does this override the default API? Should I remove the additional tools: line?

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:id="@+id/container"
android:layout_width="match_parent" android:layout_height="match_parent"
tools:overrideLibrary="com.google.android.gms"
tools:context=".MainActivity" tools:ignore="MergeRootFrame" />
activity_main.xml

Information:Gradle tasks [:tv:compileDebugSources, :mobile:compileDebugSources, :wear:compileDebugSources, :myapplication:compileDebugSources]
:tv:preBuild
:tv:preDebugBuild
:tv:checkDebugManifest
:tv:preReleaseBuild
:tv:prepareComAndroidSupportAppcompatV72103Library
:tv:prepareComAndroidSupportLeanbackV172103Library
:tv:prepareComAndroidSupportRecyclerviewV72103Library
:tv:prepareComAndroidSupportSupportV42103Library
:tv:prepareDebugDependencies
:tv:compileDebugAidl
:tv:compileDebugRenderscript
:tv:generateDebugBuildConfig
:tv:generateDebugAssets UP-TO-DATE
:tv:mergeDebugAssets
:tv:generateDebugResValues
:tv:generateDebugResources
:tv:mergeDebugResources
C:\Users\slyth_000\AndroidStudioProjects\GraphicsDemo\tv\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.3\res\drawable-mdpi\abc_ab_share_pack_holo_dark.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
C:\Users\slyth_000\AndroidStudioProjects\GraphicsDemo\tv\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.3\res\drawable-xhdpi\abc_ab_share_pack_holo_dark.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
C:\Users\slyth_000\AndroidStudioProjects\GraphicsDemo\tv\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.3\res\drawable-hdpi\abc_spinner_mtrl_am_alpha.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
C:\Users\slyth_000\AndroidStudioProjects\GraphicsDemo\tv\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.3\res\drawable-hdpi\abc_ab_share_pack_holo_light.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
C:\Users\slyth_000\AndroidStudioProjects\GraphicsDemo\tv\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.3\res\drawable-hdpi\abc_ab_share_pack_holo_dark.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
C:\Users\slyth_000\AndroidStudioProjects\GraphicsDemo\tv\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.3\res\drawable-xhdpi\abc_ab_share_pack_holo_light.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
:tv:processDebugManifest
:tv:processDebugResources
:tv:generateDebugSources
:tv:compileDebugJava
:tv:compileDebugNdk
:tv:compileDebugSources
:mobile:preBuild
:mobile:preDebugBuild
:mobile:checkDebugManifest
:mobile:preReleaseBuild
:mobile:prepareComAndroidSupportSupportV42100Library UP-TO-DATE
:mobile:prepareComGoogleAndroidGmsPlayServices6587Library UP-TO-DATE
:mobile:prepareDebugDependencies
:mobile:compileDebugAidl UP-TO-DATE
:mobile:compileDebugRenderscript UP-TO-DATE
:mobile:generateDebugBuildConfig UP-TO-DATE
:mobile:generateDebugAssets UP-TO-DATE
:mobile:mergeDebugAssets UP-TO-DATE
:mobile:generateDebugResValues UP-TO-DATE
:mobile:generateDebugResources UP-TO-DATE
:mobile:mergeDebugResources
:mobile:processDebugManifest
C:\Users\slyth_000\AndroidStudioProjects\GraphicsDemo\mobile\src\main\AndroidManifest.xml:0:0 Error:
uses-sdk:minSdkVersion 1 cannot be smaller than version 9 declared in library C:\Users\slyth_000\AndroidStudioProjects\GraphicsDemo\mobile\build\intermediates\exploded-aar\com.google.android.gms\play-services\6.5.87\AndroidManifest.xml
Suggestion: use tools:overrideLibrary="com.google.android.gms" to force usage
Error:Execution failed for task ':mobile:processDebugManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 1 cannot be smaller than version 9 declared in library C:\Users\slyth_000\AndroidStudioProjects\GraphicsDemo\mobile\build\intermediates\exploded-aar\com.google.android.gms\play-services\6.5.87\AndroidManifest.xml
Suggestion: use tools:overrideLibrary="com.google.android.gms" to force usage
Information:BUILD FAILED
Information:Total time: 58.669 secs
Information:1 error
Information:0 warnings
Information:See complete output in console
 
I've moved this thread to our Application Development subforum so that other developers can see it. They won't see it in the user-oriented Android Applications subforum, so they wouldn't be able to help out with it posted there.

Please be sure that any future development-related questions get posted here. :)

PS: You can use the [code][/code] tags to make your code posts a bit easier to read.

Ex:
[code=java]
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:id="@+id/container"
android:layout_width="match_parent" android:layout_height="match_parent"
tools:overrideLibrary="com.google.android.gms"
tools:context=".MainActivity" tools:ignore="MergeRootFrame" />
activity_main.xml
[/code]

Yields:

Java:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:id="@+id/container"
android:layout_width="match_parent" android:layout_height="match_parent"
tools:overrideLibrary="com.google.android.gms"
tools:context=".MainActivity" tools:ignore="MergeRootFrame" />
activity_main.xml
 
Back
Top Bottom