出了什么问题:任务执行失败':app:processReleaseResources'。 >无法执行aapt

时间:2018-04-04 01:20:50

标签: ionic-framework ionic2 ionic3 ionic-native

尝试在我的离子应用中构建android apk时出现此错误。任何帮助将不胜感激:)

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processReleaseResources'.
> Failed to execute aapt

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 3m 11s
    at ChildProcess.whenDone (C:\Users\KING WOODE\Documents\Mobile Apps\test\myApp\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169:23)
    at ChildProcess.emit (events.js:160:13)
    at maybeClose (internal/child_process.js:943:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
(node:7044) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:7044) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

1 个答案:

答案 0 :(得分:0)

更改

var query = (from s in Suppliers 
             select new 
             {
                 SupplierId = s.SupplierId,
                 CompanyName = s.CompanyName,
                 ContactPerson = s.ContactPerson,
                 Address = s.Address,
                 Email = s.Email,
                 InActive = s.InActive,
                 BranchId = s.BranchId,
                 CreateDate = s.CreateDate,
                 CreatedBy = s.CreatedBy,
                 UpdateDate = s.UpdateDate,
                 UpdateBy = s.UpdatedBy,
                 PhoneNumber = s.PhoneNumber,
                 Balance = SupplierTransactions
                          .Where(st => st.SupplierId == s.SupplierId)
                          .Select(st => (st.CreditAmount - st.DebitAmount))
                          .Sum()
             });

'com.android.support:support-v4:+'

在plugins文件夹和node_modules文件夹中的plugin.xml文件中。

然后在平台android'

中的project.properites中执行相同的操作