Android Aidl错误sdk构建工具29.0.0 [英] Android Aidl error sdk build tools 29.0.0

查看:191
本文介绍了Android Aidl错误sdk构建工具29.0.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我升级了Android应用,开始使用SDK 29和构建工具29.0.0.在Android Studio中进行编译时,出现错误:

I upgraded my Android app to start using SDK 29 and build tools 29.0.0. When compiling in Android Studio I get an error:

处理'命令'C:\ Users \ ma_fo \ AppData \ Local \ Android \ Sdk \ build-tools \ 29.0.0 \ aidl.exe'',完成后返回非零退出值-1073741819

为aidl执行的实际命令是 C:\ Users \ ma_fo \ AppData \ Local \ Android \ Sdk \ build-tools \ 29.0.0 \ aidl.exe,参数为{-pC:\ Users \ ma_fo \ AppData \ Local \ Android \ Sdk \ platforms \android-29 \ framework.aidl -oE:\ Work \ McDevelopment \ android-sales-app-webview \ app \ build \ Generated \ aidl_source_output_dir \ debug \ compileDebugAidl \ out -IE:\ Work \ McDevelopment \ android-sales-app-webview \ app \ src \ main \ aidl -IE:\ Work \ McDevelopment \ android-sales-app-webview \ app \ src \ debug \ aidl -IC:\ Users \ ma_fo.gradle \ caches \ transforms-2 \ files-2.1 \ c21a47fa6bee4a2c237691438c7b1f92 \ aidl -IC:\ Users \ ma_fo.gradle \ caches \ transforms-2 \ files-2.1 \ 87cbfb92509988fa6d22255a681cc703 \ aidl -IC:\ Users \ ma_fo.gradle \ caches \ transforms-2 \ 60 \ 3d \ 4 \ d \ 60 \ db \ 4 \ db \ 6 \ db \ 4 \ db \ d6 \ 4 \ db \ 4 \ db \ 6 \ db \ 4 \ db \ d6 \ 3 \ db \ 6 \ d4 \ db \ 4 \ db \ d2 \ db \ 6 \ db \ 4 \ db \ 6 \ d3 \ d6aidl -dC:\ Users \ ma_fo \ AppData \ Local \ Temp \ aidl367254395093906008.d E:\ Work \ McDevelopment \ android-sales-app-webview \ app \ src \ main \ aidl \ com \ android \ vending \ billing \ IInAppBillingService.aidl}

The actual command executed for aidl is C:\Users\ma_fo\AppData\Local\Android\Sdk\build-tools\29.0.0\aidl.exe with arguments { -pC:\Users\ma_fo\AppData\Local\Android\Sdk\platforms\android-29\framework.aidl -oE:\Work\McDevelopment\android-sales-app-webview\app\build\generated\aidl_source_output_dir\debug\compileDebugAidl\out -IE:\Work\McDevelopment\android-sales-app-webview\app\src\main\aidl -IE:\Work\McDevelopment\android-sales-app-webview\app\src\debug\aidl -IC:\Users\ma_fo.gradle\caches\transforms-2\files-2.1\c21a47fa6bee4a2c237691438c7b1f92\aidl -IC:\Users\ma_fo.gradle\caches\transforms-2\files-2.1\87cbfb92509988fa6d22255a681cc703\aidl -IC:\Users\ma_fo.gradle\caches\transforms-2\files-2.1\4cdb3bb0ddd100ba4f9a12ec5a9fae60\aidl -dC:\Users\ma_fo\AppData\Local\Temp\aidl367254395093906008.d E:\Work\McDevelopment\android-sales-app-webview\app\src\main\aidl\com\android\vending\billing\IInAppBillingService.aidl}

当我借助构建工具28.0.3在MS-DOS提示符下手动运行此命令时,编译过程将顺利进行,没有任何错误.

When I run this command manually in an MS-DOS prompt with aidl of build-tools 28.0.3, the compilation passes without any errors.

当我借助构建工具29.0.0运行此命令时,出现错误: aidl E 06-08 18:07:03 4920 13216 io_delegate.cpp:141]创建E:\ Work \ McDevelopment \ android-sales-app-webview \ app \ build \ generated \ aidl_source_output_dir \ debug \ compileDebugAidl时出错\ out \ E ::无效的参数

When I run this command with the aidl of build tools 29.0.0 I get an error: aidl E 06-08 18:07:03 4920 13216 io_delegate.cpp:141] Error while creating E:\Work\McDevelopment\android-sales-app-webview\app\build\generated\aidl_source_output_dir\debug\compileDebugAidl\out\E:: Invalid argument

我希望手动的idl编译对这两个版本都有效.29.0.0的构建工具中的辅助工具是否存在问题?还是还有其他我需要更新的内容?

I would expect the manual idl compilation to work for both versions. Is there are problem with the aidl in build tools 29.0.0 ? Or is there something else which I should update ?

推荐答案

就我而言,-d参数中的* .d文件第一行有错误.

In my case the *.d file in the -d parameter has a error in the first line.

从构建工具28.0.3:

From build tools 28.0.3:

C:\[PROJECT-PATH]\app\build\generated\aidl_source_output_dir\debug\compileDebugAidl\out\com\android\vending\billing\IInAppBillingService.java : \

通过构建工具29.0.0

From build tools 29.0.0

C:\[PROJECT-PATH]\app\build\generated\aidl_source_output_dir\debug\compileDebugAidl\out\C:\[PROJECT-PATH]\app\src\main\aidl\com\android\vending\billing\IInAppBillingService.java : \

但是我没有解决办法.我认为这是构建工具29.0.0中的错误.

But I have no solution. I think it is a bug in the build tools 29.0.0.

更新:构建工具版本29.0.1已解决此问题.

Update: The build tools version 29.0.1 has solved this problem.

这篇关于Android Aidl错误sdk构建工具29.0.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆