我定义了AIDL接口:
version: '3'
services:
registry:
restart: always
image: registry:2
ports:
- 443:443
volumes:
- /path/data:/var/lib/registry
- /path/certs:/registry/certs
- /path/auth:/registry/auth
webapp:
build:
context: ../../../
dockerfile: config/docker/dev/Dockerfile-dev
container_name: MyWebApp-dev
image: 'localhost:443/123'
environment:
- ELASTICSEARCH_URL=http://elasticsearch:9200
- ELASTICSEARCH_HOST=elasticsearch
ports:
- "4000:4000"
- "3000:3000"
depends_on:
- db
- elasticsearch
- kibana
networks:
- esnet
db:
image: postgres:10
container_name: db
environment:
- POSTGRES_USER=paul
- POSTGRES_PASSWORD=SilviaZita1
- POSTGRES_DB=snitch_dev
networks:
- esnet
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.0.1
container_name: elasticsearch
environment:
- node.name=elasticsearch
- discovery.seed_hosts=es02
- cluster.initial_master_nodes=elasticsearch,es02
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata01:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
networks:
- esnet
es02:
image: docker.elastic.co/elasticsearch/elasticsearch:7.0.1
container_name: es02
environment:
- node.name=es02
- discovery.seed_hosts=elasticsearch
- cluster.initial_master_nodes=elasticsearch,es02
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata02:/usr/share/elasticsearch/data
networks:
- esnet
kibana:
image: docker.elastic.co/kibana/kibana:7.0.1
ports:
- "5601:5601"
container_name: kibana
environment:
- ELASTICSEARCH_URL=http://elasticsearch:9200
- ELASTICSEARCH_HOST=elasticsearch
depends_on:
- elasticsearch
networks:
- esnet
volumes:
esdata01:
driver: local
esdata02:
driver: local
networks:
esnet:
接口的输入参数为List,但Android Studio编译器在参数列表中报告语法错误。
我该如何解决这个问题,谢谢!
执行任务:[assembleRelease]
:libsafeguardaidl:preBuild截至日期 :libsafeguardaidl:preReleaseBuild截至日期 aidl.exe E 05-17 17:56:07 10320 15044 aidl.cpp:580]拒绝从定义可打包的aidl文件生成代码
aidl.exe E 05-17 17:56:08 20088 15312 aidl.cpp:580]拒绝从定义可打包的aidl文件生成代码
aidl.exe E 05-17 17:56:09 10116 3252 aidl.cpp:580]拒绝从定义可打包的aidl文件生成代码
aidl.exe E 05-17 17:56:10 16452 14984 aidl.cpp:580]拒绝从定义可打包的aidl文件生成代码
aidl.exe E 05-17 17:56:11 13196 16292 aidl.cpp:580]拒绝从定义可打包的aidl文件生成代码
aidl.exe E 05-17 17:56:11 11576 13248 aidl.cpp:580]拒绝从定义可打包的aidl文件生成代码
D:\ svn \ SPOC \ SafeGuard \ Android \ trunk \ libsafeguardaidl \ src \ main \ aidl \ com \ pax \ safeguard \ aidl \ IEmvListener.aidl:22:语法错误 D:\ svn \ SPOC \ SafeGuard \ Android \ trunk \ libsafeguardaidl \ src \ main \ aidl \ com \ pax \ safeguard \ aidl \ IEmvListener.aidl:22:参数列表中的语法错误
:libsafeguardaidl:compileReleaseAidl失败
失败:构建失败,并出现异常。
出了什么问题: 任务':libsafeguardaidl:compileReleaseAidl'的执行失败。
java.io.IOException:com.android.ide.common.process.ProcessException:执行进程D:\ Tools \ android \ sdk \ build-tools \ 27.0.3 \ aidl.exe时出错,参数为{-pD :\ Tools \ android \ sdk \ platforms \ android-28 \ framework.aidl -oD:\ svn \ SPOC \ SafeGuard \ Android \ trunk \ libsafeguardaidl \ build \ Generated \ source \ aidl \ release -ID:\ svn \ SPOC \ SafeGuard \ Android \ trunk \ libsafeguardaidl \ src \ release \ aidl -ID:\ svn \ SPOC \ SafeGuard \ Android \ trunk \ libsafeguardaidl \ src \ main \ aidl -ID:\ Tools \ android \ AndroidStudio \ gradle \ gradle-4.1 \缓存\ transforms-1 \ files-1.1 \ support-compat-28.0.0.aar \ 4452a528e615b36f6f30b15d75901aa4 \ aidl -ID:\ Tools \ android \ AndroidStudio \ gradle \ gradle-4.1 \ caches \ transforms-1 \ files-1.1 \ versionedparcelable -28.0.0.aar \ fa8ec5590b396e9d8d7136acadd9c63e \ aidl -dC:\ Users \ wanghuan \ AppData \ Local \ Temp \ aidl6714822020680927962.d D:\ svn \ SPOC \ SafeGuard \ Android \ trunk \ libsafeguardaidl \ src \ main \ aidl \ com \ pax \ safeguard \ aidl \ IEmvListener.aidl}
尝试: 使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获取更多日志输出。使用--scan运行以获取完整的见解。
7秒内失败 1个可执行任务:1个已执行