Problem building Csound for android with Android Studio
Date | 2016-08-01 19:52 |
From | Vincent Michalke |
Subject | Problem building Csound for android with Android Studio |
When i try to build Csound (6.07) for android with android studio (2.1.2) it fails to build the module CsoundApplication.
This is the output of the gradle console:
Executing tasks: [:CsoundAndroid:generateReleaseSources, :CsoundAndroid:prepareReleaseUnitTestDependencies, :CsoundAndroid:mockableAndroidJar, :CsoundAndroidExamples:generateReleaseSources, :CsoundAndroidExamples:prepareReleaseUnitTestDependencies, :CsoundAndroidExamples:mockableAndroidJar, :CsoundApplication:generateReleaseSources, :CsoundApplication:prepareReleaseUnitTestDependencies, :CsoundApplication:mockableAndroidJar]
Configuration on demand is an incubating feature.
Incremental java compilation is an incubating feature. :CsoundAndroid:preBuild UP-TO-DATE :CsoundAndroid:preReleaseBuild UP-TO-DATE :CsoundAndroid:checkReleaseManifest :CsoundAndroid:prepareReleaseDependencies :CsoundAndroid:compileReleaseAidl UP-TO-DATE :CsoundAndroid:compileReleaseRenderscript UP-TO-DATE :CsoundAndroid:generateReleaseBuildConfig UP-TO-DATE :CsoundAndroid:mergeReleaseShaders UP-TO-DATE :CsoundAndroid:compileReleaseShaders UP-TO-DATE :CsoundAndroid:generateReleaseAssets UP-TO-DATE :CsoundAndroid:mergeReleaseAssets UP-TO-DATE :CsoundAndroid:generateReleaseResValues UP-TO-DATE :CsoundAndroid:generateReleaseResources UP-TO-DATE :CsoundAndroid:packageReleaseResources UP-TO-DATE :CsoundAndroid:processReleaseManifest UP-TO-DATE :CsoundAndroid:processReleaseResources UP-TO-DATE :CsoundAndroid:generateReleaseSources UP-TO-DATE :CsoundAndroid:preReleaseUnitTestBuild UP-TO-DATE :CsoundAndroid:prepareReleaseUnitTestDependencies :CsoundAndroid:mockableAndroidJar UP-TO-DATE :CsoundAndroidExamples:preBuild UP-TO-DATE :CsoundAndroidExamples:preReleaseBuild UP-TO-DATE :CsoundAndroidExamples:checkReleaseManifest :CsoundAndroid:compileReleaseNdk UP-TO-DATE :CsoundAndroid:compileLint :CsoundAndroid:copyReleaseLint UP-TO-DATE :CsoundAndroid:mergeReleaseProguardFiles UP-TO-DATE :CsoundAndroid:packageReleaseRenderscript UP-TO-DATE :CsoundAndroid:incrementalReleaseJavaCompilationSafeguard UP-TO-DATE :CsoundAndroid:compileReleaseJavaWithJavac UP-TO-DATE :CsoundAndroid:processReleaseJavaRes UP-TO-DATE :CsoundAndroid:transformResourcesWithMergeJavaResForRelease UP-TO-DATE :CsoundAndroid:transformClassesAndResourcesWithSyncLibJarsForRelease UP-TO-DATE :CsoundAndroid:mergeReleaseJniLibFolders UP-TO-DATE :CsoundAndroid:transformNative_libsWithMergeJniLibsForRelease UP-TO-DATE :CsoundAndroid:transformNative_libsWithSyncJniLibsForRelease UP-TO-DATE :CsoundAndroid:bundleRelease UP-TO-DATE :CsoundAndroidExamples:preDebugBuild UP-TO-DATE :CsoundAndroidExamples:prepareCsoundForAndroidCsoundAndroidUnspecifiedLibrary UP-TO-DATE :CsoundAndroidExamples:prepareReleaseDependencies :CsoundAndroidExamples:compileReleaseAidl UP-TO-DATE :CsoundAndroidExamples:compileReleaseRenderscript UP-TO-DATE :CsoundAndroidExamples:generateReleaseBuildConfig UP-TO-DATE :CsoundAndroidExamples:mergeReleaseShaders UP-TO-DATE :CsoundAndroidExamples:compileReleaseShaders UP-TO-DATE :CsoundAndroidExamples:generateReleaseAssets UP-TO-DATE :CsoundAndroidExamples:mergeReleaseAssets UP-TO-DATE :CsoundAndroidExamples:generateReleaseResValues UP-TO-DATE :CsoundAndroidExamples:generateReleaseResources UP-TO-DATE :CsoundAndroidExamples:mergeReleaseResources UP-TO-DATE :CsoundAndroidExamples:processReleaseManifest UP-TO-DATE :CsoundAndroidExamples:processReleaseResources UP-TO-DATE :CsoundAndroidExamples:generateReleaseSources UP-TO-DATE :CsoundAndroidExamples:preReleaseUnitTestBuild UP-TO-DATE :CsoundAndroidExamples:prepareReleaseUnitTestDependencies :CsoundAndroidExamples:mockableAndroidJar UP-TO-DATE :CsoundApplication:preBuild UP-TO-DATE :CsoundApplication:preReleaseBuild UP-TO-DATE :CsoundApplication:checkReleaseManifest :CsoundApplication:preDebugBuild UP-TO-DATE :CsoundApplication:prepareCsoundForAndroidCsoundAndroidUnspecifiedLibrary UP-TO-DATE :CsoundApplication:prepareReleaseDependencies :CsoundApplication:compileReleaseAidl UP-TO-DATE :CsoundApplication:compileReleaseRenderscript UP-TO-DATE :CsoundApplication:generateReleaseBuildConfig UP-TO-DATE :CsoundApplication:mergeReleaseShaders UP-TO-DATE :CsoundApplication:compileReleaseShaders UP-TO-DATE :CsoundApplication:generateReleaseAssets UP-TO-DATE :CsoundApplication:mergeReleaseAssets UP-TO-DATE :CsoundApplication:generateReleaseResValues UP-TO-DATE :CsoundApplication:generateReleaseResources UP-TO-DATE :CsoundApplication:mergeReleaseResources UP-TO-DATE :CsoundApplication:processReleaseManifest UP-TO-DATE :CsoundApplication:processReleaseResources AGPBI: {"kind":"error","text":"No resource found that matches the given name (at \u0027entries\u0027 with value \u0027@array/layoutEntries\u0027).","sources":[{"file":"/home/vincent/csound/csound/android/csound-android-6.07.0/CsoundForAndroid/CsoundApplication/src/main/res/xml/settings.xml","position":{"startLine":11,"startColumn":25,"startOffset":866,"endColumn":45,"endOffset":886}}],"original":"","tool":"AAPT"} AGPBI: {"kind":"error","text":"No resource found that matches the given name (at \u0027entryValues\u0027 with value \u0027@array/layoutValues\u0027).","sources":[{"file":"/home/vincent/csound/csound/android/csound-android-6.07.0/CsoundForAndroid/CsoundApplication/src/main/res/xml/settings.xml","position":{"startLine":12,"startColumn":29,"startOffset":917,"endColumn":48,"endOffset":936}}],"original":"","tool":"AAPT"} FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':CsoundApplication:processReleaseResources'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/vincent/Android/Sdk/build-tools/24.0.1/aapt'' finished with non-zero exit value 1 * Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED
I tried to use different versions of the android sdk, but it didn't help.
Can someone help me out?
|
Date | 2016-08-07 14:53 |
From | Steven Yi |
Subject | Re: Problem building Csound for android with Android Studio |
Hi Vincent, I looked and saw the same issue here. It looks like Michael Gogins added the code that introduced the @array/layoutValues in this git commit [1]. We missed verifying it before the release it seems. I suspect what is happening is a file that should have been a part of that commit was not added to the repository. Michael: Could you check your system if there is a file that should be in the repository? steven [1] - https://github.com/csound/csound/commit/17fa0c7ab559427e3b9f61b698601b00b7652f6f On Mon, Aug 1, 2016 at 2:52 PM, Vincent Michalke |
Date | 2016-08-07 20:48 |
From | Michael Gogins |
Subject | Re: Problem building Csound for android with Android Studio |
I will investigate this, but I am away from the Windows computer where I normally build Csound for Android, so I'm not sure how far I will get. I will have to install Android Studio here (on Linux) and see what happens. ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Sun, Aug 7, 2016 at 9:53 AM, Steven Yi <stevenyi@gmail.com> wrote: Hi Vincent, |