我正在尝试使用 aidls 构建一个库。
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := test
LOCAL_SRC_FILES := $(call all-java-files-under, java) \
java/com/testapp/Istudent.aidl \
java/com/testapp/Itest.aidl \
LOCAL_PREBUILT_JAVA_LIBRARY := framework.jar
include $(BUILD_JAVA_LIBRARY)
Run Code Online (Sandbox Code Playgroud)
我正在尝试推荐 Itest 中的学生。
学生助手
package com.testapp;
parcelable Istudent;
Run Code Online (Sandbox Code Playgroud)
学生.java
public class Istudent implements Parcelable{}
Run Code Online (Sandbox Code Playgroud)
测试帮助文件
package com.testapp;
import com.testapp.Istudent;
interface IAP2InterfaceBase {}
Run Code Online (Sandbox Code Playgroud)
但我收到的错误是 E 07-11 20:05:37 71066 71066 aidl.cpp:580] 拒绝从定义parcelable的aidl文件生成代码
请让我知道“拒绝从定义可打包的 aidl 文件生成代码”是什么意思?我在这里做错了什么..
小智 -1
在你的 android.mk 文件中替换
LOCAL_SRC_FILES := $(call all-java-files-under, java) \
java/com/testapp/Istudent.aidl \
java/com/testapp/Itest.aidl \
Run Code Online (Sandbox Code Playgroud)
和 - - - - - -
LOCAL_SRC_FILES := $(call all-java-files-under, java) $(call all-Iaidl-files-under, java)
LOCAL_AIDL_INCLUDES := $(call all-Iaidl-files-under, java)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
11191 次 |
| 最近记录: |