Hi, I am trying to create an app for local machine translation. I have a GUI for it. I need to embed a QT desktop project as a library in order to use some functionalities of that project.
For now I just have one Qt C++ file in order to check if running Qt files in Android Studio is even possible but I keep getting errors. I was wondering if anyone could help me with this. Thanks!
I'm pasting the build output of the most recent error that I got:
Executing tasks: [:app:assembleDebug] in project C:\UNI\4th_Year\Thesis\translateLocally for Android
> Task :app:createDebugVariantModel UP-TO-DATE
> Task :appreBuild UP-TO-DATE
> Task :appreDebugBuild UP-TO-DATE
> Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
> Task :app:compileDebugAidl NO-SOURCE
> Task :app:compileDebugRenderscript NO-SOURCE
> Task :app:dataBindingMergeDependencyArtifactsDebug UP-TO-DATE
> Task :app:generateDebugResValues UP-TO-DATE
> Task :app:generateDebugResources UP-TO-DATE
> Task :app:mergeDebugResources UP-TO-DATE
> Task :appackageDebugResources UP-TO-DATE
> Task :apparseDebugLocalResources UP-TO-DATE
> Task :app:dataBindingGenBaseClassesDebug UP-TO-DATE
> Task :app:generateDebugBuildConfig UP-TO-DATE
> Task :app:javaPreCompileDebug UP-TO-DATE
> Task :app:checkDebugAarMetadata UP-TO-DATE
> Task :app:mapDebugSourceSetPaths UP-TO-DATE
> Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
> Task :app:extractDeepLinksDebug UP-TO-DATE
> Task :approcessDebugMainManifest UP-TO-DATE
> Task :approcessDebugManifest UP-TO-DATE
> Task :approcessDebugManifestForPackage UP-TO-DATE
> Task :approcessDebugResources UP-TO-DATE
> Task :app:compileDebugJavaWithJavac UP-TO-DATE
> Task :app:mergeDebugShaders UP-TO-DATE
> Task :app:compileDebugShaders NO-SOURCE
> Task :app:generateDebugAssets UP-TO-DATE
> Task :app:mergeDebugAssets UP-TO-DATE
> Task :app:compressDebugAssets UP-TO-DATE
> Task :approcessDebugJavaRes NO-SOURCE
> Task :app:mergeDebugJavaResource UP-TO-DATE
> Task :app:checkDebugDuplicateClasses UP-TO-DATE
> Task :app:desugarDebugFileDependencies UP-TO-DATE
> Task :app:mergeExtDexDebug UP-TO-DATE
> Task :app:mergeLibDexDebug UP-TO-DATE
> Task :app:dexBuilderDebug UP-TO-DATE
> Task :app:mergeProjectDexDebug UP-TO-DATE
> Task :app:configureCMakeDebug[arm64-v8a]
> Task :app:buildCMakeDebug[arm64-v8a] FAILED
C/C++: ninja: fatal: CreateProcess: Access is denied.
> Task :app:configureCMakeDebug[armeabi-v7a]
> Task :app:buildCMakeDebug[armeabi-v7a] FAILED
C/C++: ninja: fatal: CreateProcess: Access is denied.
> Task :app:configureCMakeDebug[x86]
> Task :app:buildCMakeDebug[x86] FAILED
C/C++: ninja: fatal: CreateProcess: Access is denied.
> Task :app:configureCMakeDebug[x86_64]
> Task :app:buildCMakeDebug[x86_64] FAILED
C/C++: ninja: fatal: CreateProcess: Access is denied.
> Task :app:mergeDebugJniLibFolders UP-TO-DATE
> Task :app:validateSigningDebug UP-TO-DATE
> Task :app:writeDebugAppMetadata UP-TO-DATE
> Task :app:writeDebugSigningConfigVersions UP-TO-DATE
FAILURE: Build completed with 4 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:buildCMakeDebug[arm64-v8a]'.
> com.android.ide.common.process.ProcessException: ninja: Entering directory `C:\UNI\4th_Year\Thesis\translateLocally for Android\app\.cxx\Debug\z595a5g4\arm64-v8a'
C++ build system [build] failed while executing:
@echo off
"C:\\Users\\karma\\AppData\\Local\\Android\\Sdk\\cmake\\3.18.1\\bin\\ninja.exe" ^
-C ^
"C:\\UNI\\4th_Year\\Thesis\\translateLocally for Android\\app\\.cxx\\Debug\\z595a5g4\\arm64-v8a" ^
translatelocally
from C:\UNI\4th_Year\Thesis\translateLocally for Android\app
ninja: fatal: CreateProcess: Access is denied.
* 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.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:buildCMakeDebug[armeabi-v7a]'.
> com.android.ide.common.process.ProcessException: ninja: Entering directory `C:\UNI\4th_Year\Thesis\translateLocally for Android\app\.cxx\Debug\z595a5g4\armeabi-v7a'
C++ build system [build] failed while executing:
@echo off
"C:\\Users\\karma\\AppData\\Local\\Android\\Sdk\\cmake\\3.18.1\\bin\\ninja.exe" ^
-C ^
"C:\\UNI\\4th_Year\\Thesis\\translateLocally for Android\\app\\.cxx\\Debug\\z595a5g4\\armeabi-v7a" ^
translatelocally
from C:\UNI\4th_Year\Thesis\translateLocally for Android\app
ninja: fatal: CreateProcess: Access is denied.
* 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.
==============================================================================
3: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:buildCMakeDebug[x86]'.
> com.android.ide.common.process.ProcessException: ninja: Entering directory `C:\UNI\4th_Year\Thesis\translateLocally for Android\app\.cxx\Debug\z595a5g4\x86'
C++ build system [build] failed while executing:
@echo off
"C:\\Users\\karma\\AppData\\Local\\Android\\Sdk\\cmake\\3.18.1\\bin\\ninja.exe" ^
-C ^
"C:\\UNI\\4th_Year\\Thesis\\translateLocally for Android\\app\\.cxx\\Debug\\z595a5g4\\x86" ^
translatelocally
from C:\UNI\4th_Year\Thesis\translateLocally for Android\app
ninja: fatal: CreateProcess: Access is denied.
* 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.
==============================================================================
4: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:buildCMakeDebug[x86_64]'.
> com.android.ide.common.process.ProcessException: ninja: Entering directory `C:\UNI\4th_Year\Thesis\translateLocally for Android\app\.cxx\Debug\z595a5g4\x86_64'
C++ build system [build] failed while executing:
@echo off
"C:\\Users\\karma\\AppData\\Local\\Android\\Sdk\\cmake\\3.18.1\\bin\\ninja.exe" ^
-C ^
"C:\\UNI\\4th_Year\\Thesis\\translateLocally for Android\\app\\.cxx\\Debug\\z595a5g4\\x86_64" ^
translatelocally
from C:\UNI\4th_Year\Thesis\translateLocally for Android\app
ninja: fatal: CreateProcess: Access is denied.
* 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 12s
40 actionable tasks: 8 executed, 32 up-to-date
For now I just have one Qt C++ file in order to check if running Qt files in Android Studio is even possible but I keep getting errors. I was wondering if anyone could help me with this. Thanks!
I'm pasting the build output of the most recent error that I got:
Executing tasks: [:app:assembleDebug] in project C:\UNI\4th_Year\Thesis\translateLocally for Android
> Task :app:createDebugVariantModel UP-TO-DATE
> Task :appreBuild UP-TO-DATE
> Task :appreDebugBuild UP-TO-DATE
> Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
> Task :app:compileDebugAidl NO-SOURCE
> Task :app:compileDebugRenderscript NO-SOURCE
> Task :app:dataBindingMergeDependencyArtifactsDebug UP-TO-DATE
> Task :app:generateDebugResValues UP-TO-DATE
> Task :app:generateDebugResources UP-TO-DATE
> Task :app:mergeDebugResources UP-TO-DATE
> Task :appackageDebugResources UP-TO-DATE
> Task :apparseDebugLocalResources UP-TO-DATE
> Task :app:dataBindingGenBaseClassesDebug UP-TO-DATE
> Task :app:generateDebugBuildConfig UP-TO-DATE
> Task :app:javaPreCompileDebug UP-TO-DATE
> Task :app:checkDebugAarMetadata UP-TO-DATE
> Task :app:mapDebugSourceSetPaths UP-TO-DATE
> Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
> Task :app:extractDeepLinksDebug UP-TO-DATE
> Task :approcessDebugMainManifest UP-TO-DATE
> Task :approcessDebugManifest UP-TO-DATE
> Task :approcessDebugManifestForPackage UP-TO-DATE
> Task :approcessDebugResources UP-TO-DATE
> Task :app:compileDebugJavaWithJavac UP-TO-DATE
> Task :app:mergeDebugShaders UP-TO-DATE
> Task :app:compileDebugShaders NO-SOURCE
> Task :app:generateDebugAssets UP-TO-DATE
> Task :app:mergeDebugAssets UP-TO-DATE
> Task :app:compressDebugAssets UP-TO-DATE
> Task :approcessDebugJavaRes NO-SOURCE
> Task :app:mergeDebugJavaResource UP-TO-DATE
> Task :app:checkDebugDuplicateClasses UP-TO-DATE
> Task :app:desugarDebugFileDependencies UP-TO-DATE
> Task :app:mergeExtDexDebug UP-TO-DATE
> Task :app:mergeLibDexDebug UP-TO-DATE
> Task :app:dexBuilderDebug UP-TO-DATE
> Task :app:mergeProjectDexDebug UP-TO-DATE
> Task :app:configureCMakeDebug[arm64-v8a]
> Task :app:buildCMakeDebug[arm64-v8a] FAILED
C/C++: ninja: fatal: CreateProcess: Access is denied.
> Task :app:configureCMakeDebug[armeabi-v7a]
> Task :app:buildCMakeDebug[armeabi-v7a] FAILED
C/C++: ninja: fatal: CreateProcess: Access is denied.
> Task :app:configureCMakeDebug[x86]
> Task :app:buildCMakeDebug[x86] FAILED
C/C++: ninja: fatal: CreateProcess: Access is denied.
> Task :app:configureCMakeDebug[x86_64]
> Task :app:buildCMakeDebug[x86_64] FAILED
C/C++: ninja: fatal: CreateProcess: Access is denied.
> Task :app:mergeDebugJniLibFolders UP-TO-DATE
> Task :app:validateSigningDebug UP-TO-DATE
> Task :app:writeDebugAppMetadata UP-TO-DATE
> Task :app:writeDebugSigningConfigVersions UP-TO-DATE
FAILURE: Build completed with 4 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:buildCMakeDebug[arm64-v8a]'.
> com.android.ide.common.process.ProcessException: ninja: Entering directory `C:\UNI\4th_Year\Thesis\translateLocally for Android\app\.cxx\Debug\z595a5g4\arm64-v8a'
C++ build system [build] failed while executing:
@echo off
"C:\\Users\\karma\\AppData\\Local\\Android\\Sdk\\cmake\\3.18.1\\bin\\ninja.exe" ^
-C ^
"C:\\UNI\\4th_Year\\Thesis\\translateLocally for Android\\app\\.cxx\\Debug\\z595a5g4\\arm64-v8a" ^
translatelocally
from C:\UNI\4th_Year\Thesis\translateLocally for Android\app
ninja: fatal: CreateProcess: Access is denied.
* 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.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:buildCMakeDebug[armeabi-v7a]'.
> com.android.ide.common.process.ProcessException: ninja: Entering directory `C:\UNI\4th_Year\Thesis\translateLocally for Android\app\.cxx\Debug\z595a5g4\armeabi-v7a'
C++ build system [build] failed while executing:
@echo off
"C:\\Users\\karma\\AppData\\Local\\Android\\Sdk\\cmake\\3.18.1\\bin\\ninja.exe" ^
-C ^
"C:\\UNI\\4th_Year\\Thesis\\translateLocally for Android\\app\\.cxx\\Debug\\z595a5g4\\armeabi-v7a" ^
translatelocally
from C:\UNI\4th_Year\Thesis\translateLocally for Android\app
ninja: fatal: CreateProcess: Access is denied.
* 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.
==============================================================================
3: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:buildCMakeDebug[x86]'.
> com.android.ide.common.process.ProcessException: ninja: Entering directory `C:\UNI\4th_Year\Thesis\translateLocally for Android\app\.cxx\Debug\z595a5g4\x86'
C++ build system [build] failed while executing:
@echo off
"C:\\Users\\karma\\AppData\\Local\\Android\\Sdk\\cmake\\3.18.1\\bin\\ninja.exe" ^
-C ^
"C:\\UNI\\4th_Year\\Thesis\\translateLocally for Android\\app\\.cxx\\Debug\\z595a5g4\\x86" ^
translatelocally
from C:\UNI\4th_Year\Thesis\translateLocally for Android\app
ninja: fatal: CreateProcess: Access is denied.
* 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.
==============================================================================
4: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:buildCMakeDebug[x86_64]'.
> com.android.ide.common.process.ProcessException: ninja: Entering directory `C:\UNI\4th_Year\Thesis\translateLocally for Android\app\.cxx\Debug\z595a5g4\x86_64'
C++ build system [build] failed while executing:
@echo off
"C:\\Users\\karma\\AppData\\Local\\Android\\Sdk\\cmake\\3.18.1\\bin\\ninja.exe" ^
-C ^
"C:\\UNI\\4th_Year\\Thesis\\translateLocally for Android\\app\\.cxx\\Debug\\z595a5g4\\x86_64" ^
translatelocally
from C:\UNI\4th_Year\Thesis\translateLocally for Android\app
ninja: fatal: CreateProcess: Access is denied.
* 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 12s
40 actionable tasks: 8 executed, 32 up-to-date