Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

A problem was found with the configuration of task ':processDebugManifest'



  • I want to build an android project , but failed with an exception

    FAILURE: Build failed with an exception.
    
    * What went wrong:
    A problem was found with the configuration of task ':processDebugManifest' (type 'ProcessMultiApkApplicationManifest').
    > File 'E:\code\android_projects\hello_build\android-build\build\intermediates\merged_manifest\debug\out\AndroidManifest.xml' specified for property 'mainMergedManifest' does not exist.
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    
    * Get more help at https://help.gradle.org
    
    BUILD FAILED in 6s
    

    here is the full log

    C:/Users/amadu/AppData/Local/Android/Sdk/ndk/21.3.6528147/prebuilt/windows-x86_64/bin/make -f Makefile.Armeabi-v7a all
    C:/Users/amadu/AppData/Local/Android/Sdk/ndk/21.3.6528147/prebuilt/windows-x86_64/bin/make -f Makefile.X86 all
    make[1]: Entering directory 'E:/code/android_projects/hello_build'
    make[1]: Nothing to be done for 'all'.
    make[1]: Leaving directory 'E:/code/android_projects/hello_build'
    make[1]: Entering directory 'E:/code/android_projects/hello_build'
    make[1]: Nothing to be done for 'all'.
    make[1]: Leaving directory 'E:/code/android_projects/hello_build'
    15:42:08: 进程"C:\Users\amadu\AppData\Local\Android\Sdk\ndk\21.3.6528147\prebuilt\windows-x86_64\bin\make.exe"正常退出。
    15:42:08: Removing directory E:\code\android_projects\hello_build\android-build/assets
    15:42:08: Removing directory E:\code\android_projects\hello_build\android-build/libs
    15:42:08: 正在启动 "C:\Users\amadu\AppData\Local\Android\Sdk\ndk\21.3.6528147\prebuilt\windows-x86_64\bin\make.exe" "INSTALL_ROOT=E:\code\android_projects\hello_build\android-build" install
    
    C:/Users/amadu/AppData/Local/Android/Sdk/ndk/21.3.6528147/prebuilt/windows-x86_64/bin/make -f Makefile.Armeabi-v7a install
    make[1]: Entering directory 'E:/code/android_projects/hello_build'
    C:\Qt\Qt_OpenSource\5.14.1\android\bin\qmake.exe -install qinstall -exe libhello_armeabi-v7a.so E:\code\android_projects\hello_build\android-build\libs\armeabi-v7a\libhello_armeabi-v7a.so
    make[1]: Leaving directory 'E:/code/android_projects/hello_build'
    C:/Users/amadu/AppData/Local/Android/Sdk/ndk/21.3.6528147/prebuilt/windows-x86_64/bin/make -f Makefile.X86 install
    make[1]: Entering directory 'E:/code/android_projects/hello_build'
    C:\Qt\Qt_OpenSource\5.14.1\android\bin\qmake.exe -install qinstall -exe libhello_x86.so E:\code\android_projects\hello_build\android-build\libs\x86\libhello_x86.so
    make[1]: Leaving directory 'E:/code/android_projects/hello_build'
    15:42:08: 进程"C:\Users\amadu\AppData\Local\Android\Sdk\ndk\21.3.6528147\prebuilt\windows-x86_64\bin\make.exe"正常退出。
    15:42:09: Starting: "C:\Qt\Qt_OpenSource\5.14.1\android\bin\androiddeployqt.exe" --input E:/code/android_projects/hello_build/android-hello-deployment-settings.json --output E:/code/android_projects/hello_build/android-build --android-platform android-29 --jdk "C:/Program Files/Java/jdk-14.0.2" --gradle
    Generating Android Package
      Input file: E:/code/android_projects/hello_build/android-hello-deployment-settings.json
      Output directory: E:/code/android_projects/hello_build/android-build/
      Application binary: hello
      Android build platform: android-29
      Install to device: No
      -- Skipping C:/Qt/Qt_OpenSource/5.14.1/android/plugins/iconengines/libplugins_iconengines_qsvgicon_armeabi-v7a.so. It has unmet dependencies: lib/libQt5Svg_armeabi-v7a.so,lib/libQt5Widgets_armeabi-v7a.so.
      -- Skipping C:/Qt/Qt_OpenSource/5.14.1/android/plugins/imageformats/libplugins_imageformats_qsvg_armeabi-v7a.so. It has unmet dependencies: lib/libQt5Svg_armeabi-v7a.so,lib/libQt5Widgets_armeabi-v7a.so.
      -- Skipping C:/Qt/Qt_OpenSource/5.14.1/android/plugins/iconengines/libplugins_iconengines_qsvgicon_x86.so. It has unmet dependencies: lib/libQt5Svg_x86.so,lib/libQt5Widgets_x86.so.
      -- Skipping C:/Qt/Qt_OpenSource/5.14.1/android/plugins/imageformats/libplugins_imageformats_qsvg_x86.so. It has unmet dependencies: lib/libQt5Svg_x86.so,lib/libQt5Widgets_x86.so.
    WARNING: An illegal reflective access operation has occurred
    WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/C:/Users/amadu/.gradle/wrapper/dists/gradle-6.8.2-all/446le5pselpgh0bzinc35sp0d/gradle-6.8.2/lib/groovy-all-1.3-2.5.12.jar) to method java.lang.Object.finalize()
    WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass
    WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
    WARNING: All illegal access operations will be denied in a future release
    > Task :preBuild UP-TO-DATE
    > Task :preDebugBuild UP-TO-DATE
    > Task :compileDebugAidl UP-TO-DATE
    > Task :compileDebugRenderscript NO-SOURCE
    > Task :generateDebugBuildConfig UP-TO-DATE
    > Task :javaPreCompileDebug UP-TO-DATE
    > Task :checkDebugAarMetadata UP-TO-DATE
    > Task :generateDebugResValues UP-TO-DATE
    > Task :generateDebugResources UP-TO-DATE
    > Task :mergeDebugResources UP-TO-DATE
    > Task :createDebugCompatibleScreenManifests UP-TO-DATE
    > Task :extractDeepLinksDebug UP-TO-DATE
    > Task :processDebugMainManifest UP-TO-DATE
    > Task :processDebugManifest FAILED
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    A problem was found with the configuration of task ':processDebugManifest' (type 'ProcessMultiApkApplicationManifest').
    > File 'E:\code\android_projects\hello_build\android-build\build\intermediates\merged_manifest\debug\out\AndroidManifest.xml' specified for property 'mainMergedManifest' does not exist.
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    
    * Get more help at https://help.gradle.org
    
    BUILD FAILED in 6s
    10 actionable tasks: 1 executed, 9 up-to-date
    Building the android package failed!
    

Log in to reply