1. Are you ready for the Galaxy S20? Here is everything we know so far!

How to Avoid tools:replace="android:name"

Discussion in 'Android Development' started by Hallo91, Oct 10, 2018.

  1. Hallo91

    Hallo91 Lurker
    Thread Starter

    Hello friends, i have an App and a library together, the problem is they have both in the manifest file the line
    android:name="xxxx".
    So when runing the app, it's says that you have to add this line :
    tools:replace="android:name"
    But the App crashes when calling the library, is there any solution to avoid the replacing of the name :

    Here is my application manifest :

    <application
    android:name=".myApplication"
    android:allowBackup="true"
    android:icon="@Mipmap/ic_launcher"
    android:label="@String/app_name"
    android:theme="@Style/AppTheme">


    The library :


    <application
    android:name=".my_library"
    android:allowBackup="true">


     


  2. use tools:replace="android:supportsRtl" in your manifest file.
     
Loading...

Share This Page

Loading...