Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How can I stop Qtcreator from overwriting my AndroidManifest.xml
Forum Updated to NodeBB v4.3 + New Features

How can I stop Qtcreator from overwriting my AndroidManifest.xml

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 2.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lanigb
    wrote on last edited by
    #1

    Hi all,

    find ./ -iname "Android*" |grep anife in my project folder gives me
    ./build-otdroid-Android_for_armeabi_v7a_GCC_4_9_Qt_5_4_0-Debug/android-build/bin/AndroidManifest.xml.d
    ./build-otdroid-Android_for_armeabi_v7a_GCC_4_9_Qt_5_4_0-Debug/android-build/bin/AndroidManifest.xml
    ./build-otdroid-Android_for_armeabi_v7a_GCC_4_9_Qt_5_4_0-Debug/android-build/AndroidManifest.xml

    Even if I modify both AndroidManifest.xml in the same way, these modifications are overwrited during the next build.

    I don't find a create AndroidManifest.xml button in the project tab. I use Qt Creator 3.3.0 (opensource) on linux.

    TIA

    A.B.

    J 1 Reply Last reply
    0
    • L lanigb

      Hi all,

      find ./ -iname "Android*" |grep anife in my project folder gives me
      ./build-otdroid-Android_for_armeabi_v7a_GCC_4_9_Qt_5_4_0-Debug/android-build/bin/AndroidManifest.xml.d
      ./build-otdroid-Android_for_armeabi_v7a_GCC_4_9_Qt_5_4_0-Debug/android-build/bin/AndroidManifest.xml
      ./build-otdroid-Android_for_armeabi_v7a_GCC_4_9_Qt_5_4_0-Debug/android-build/AndroidManifest.xml

      Even if I modify both AndroidManifest.xml in the same way, these modifications are overwrited during the next build.

      I don't find a create AndroidManifest.xml button in the project tab. I use Qt Creator 3.3.0 (opensource) on linux.

      TIA

      A.B.

      J Offline
      J Offline
      jalomic
      wrote on last edited by jalomic
      #2

      @lanigb Open QtCreator >> open your project >> open "Projects" tab ( under "Debug" ) >> Scroll down here ( screenshot link ) and push "Create Template" button. =) Good Luck !

      Now you have your own "Android" folder. Put there everything what you want: Replace activity java files, add new java files, replace any android resources, etc.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lanigb
        wrote on last edited by
        #3

        Thansk a lot. I don't know how many times I saw this "create templates" button and told myself "it can't be this one".
        So stupid!

        A.B.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved