How to compile helpl file in android project?

Hi, will someone tell me where to place the helpl file in the project tree and how to use it in the project source. Will the helpl file compile if I build apk ?? How to use it in eclipse?

+5
source share
3 answers

AIDL (Android Interface Definition Language) is similar to other IDLs you could work with. This allows you to define a programming interface, agreed upon by both the client and the service, to interact with each other using interprocess communication (IPC)

Where to place the helpl file?

Save the helper file in the source code (in the src / directory) for both the application that takes the service and any other application that binds to the service.

helpl, apk?

, gen.

.

+13

AIDL.

Android Studio 3.0.1 ( Android Studio 2.x.x):

WindowsGradle

compileDebugAidl

Compilation only AIDL.  Right click and execute

+1

, - , AIDL Gradle ( src/):

In Gradle, you need to put the AIDL file in src/main/aidl/so that it is automatically detected.

During build, the Java interface and stub implementation are then placed in build / generated / source / aidl / {debug, release} /, otherwise the information provided by Chirag Raval is still correct.

0
source

All Articles