Android Studio does not detect .aidl files
来源:互联网 发布:传奇霸业翅膀升级数据 编辑:程序博客网 时间:2024/05/01 09:27
up vote15down votefavorite
5
I have found a sample from the Internet (https://github.com/manishkpr/Android-AIDL-Example) and ran on Android Studio and it worked fine.
But now when I am trying to recreate the project, the Android Studio fails to recognize the .aidl file no matter where I place it. Can anybody tell me what is the right location to place .aidl files in Android Studio?
p.s. I have added the below code to build.gradle and place the .aidl file in the java directory, but failed to get it work.
sourceSets {main { aidl.srcDirs = ['src/main/java']}
android-studio aidl
add a comment
4 Answers
activeoldestvotes
up vote11down vote
The below link solved my issue.
https://code.google.com/p/android/issues/detail?id=56160
// 在src/main目录下建立aidl目录,然后在里面建立package(包名应该为aidl原文件中的package指定的目录)
0 0
- Android Studio does not detect .aidl files
- Error:The SDK directory 'D:\Program Files\Android\android-studio\sdk' does not exist.
- Android Studio The APK file does not exist on disk
- android studio dev-debug.apk does not exist on disk.
- Android Studio The APK file does not exist on disk
- android studio does not point to jvm installation
- Android Studio compile error ---- enum constant INSTANT_RUN_REPLACEMENT does not
- Android Studio之package org.junit does not exist解决办法
- Android studio import aidl
- Android Studio 使用AIDL
- Android Studio导入aidl
- [Android Studio] AIDL
- android studio AIDL使用方法。
- Android studio AIDL详解
- AIDL导入Android Studio
- Android Studio 使用AIDL
- Android Studio AIDL
- Android Studio新建AIDL
- 语句for( ;1;)是什么意思?
- jquery遍历函数.li ???
- hdoj 5773 <变相LIS>
- Rails 中的持久化框架 Active recored
- poj 1789 Truck History
- Android Studio does not detect .aidl files
- Python随学随记(4)
- Hdu 5765 Bonds
- 人生十难
- vs2013编译FFMPEG. 连接错误问题.
- Java设计模式--单例模式
- ubuntu 下如何以root身份登录
- 二分+dp,在一个地方上卡了2小时
- 机器学习领域的五大流派