Obsolete
Status Update
Comments
vs...@google.com <vs...@google.com> #2
Yes, this is working as expected. Aidl files are supposed to be in src/main/aidl:
http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Project-Structure
If you want to have them in src/main/java, then you need the remapping instruction as you've specified.
If you want to have them in src/main/java, then you need the remapping instruction as you've specified.
we...@gmail.com <we...@gmail.com> #3
Thanks, I'll fix the project setup :-) . Old Eclipse habits will die slowly I expect.
BTW, I haven't seen yet a summary page that gives an overview about the major changes?
BTW, I haven't seen yet a summary page that gives an overview about the major changes?
we...@gmail.com <we...@gmail.com> #4
Some more thoughts:
- the "New project" wizard does not create additional directories by default. Maybe
there's a hidden option that does it? Or add an option to creat the full set of
directories, not only the simple setup
- the aidl directory shall have the same package structure as the java directory? If
yes it would make sense to add similar/same options in the "New" context menu for
the aidl directory, e.g. "Package". That would make handling simpler
- the "New project" wizard does not create additional directories by default. Maybe
there's a hidden option that does it? Or add an option to creat the full set of
directories, not only the simple setup
- the aidl directory shall have the same package structure as the java directory? If
yes it would make sense to add similar/same options in the "New" context menu for
the aidl directory, e.g. "Package". That would make handling simpler
or...@gmail.com <or...@gmail.com> #5
A "gradle doctor" (a-la Homebrew's "brew doctor") target could be nice, which would e.g. report .aidl files that aren't in an src/main/aidl/ path.
ma...@gmail.com <ma...@gmail.com> #6
Usual contadictary information. Google please make your mind up and stick to it.
Output from Android Studio 0.45 with latest Gradle Plugins.
IInAppBillingService.aidl:45 interface IInAppBillingService should be declared in a file called com\android\vending\billing\IInAppBillingService.aidl.
Output from Android Studio 0.45 with latest Gradle Plugins.
IInAppBillingService.aidl:45 interface IInAppBillingService should be declared in a file called com\android\vending\billing\IInAppBillingService.aidl.
xa...@android.com <xa...@android.com> #7
where did you get this error? was it on a newly created project?
al...@gmail.com <al...@gmail.com> #8
I received the error from comment #5 when adding IInAppbillingService.aidl to an existing android-studio project.
I was not able to build when placing the file in that directory, until I added the snippet:
sourceSets {
main {
aidl.srcDirs = ['src/main/java']
}
}
to my build.gradle file.
I was not able to build with the file place in src/main/aidl alone as expected.
I was not able to build when placing the file in that directory, until I added the snippet:
sourceSets {
main {
aidl.srcDirs = ['src/main/java']
}
}
to my build.gradle file.
I was not able to build with the file place in src/main/aidl alone as expected.
xa...@android.com <xa...@android.com> #9
Josiah, can you check what our templates are doing?
jo...@google.com <jo...@google.com> #10
We should create menu actions for creating the aidl (and other) source directories and remapping them in build.gradle if necessary. I'm tracking this here: https://code.google.com/p/android/issues/detail?id=65058
sv...@gmail.com <sv...@gmail.com> #11
I finally got it working by including it manually, just leaving it in the /src/main/aidl didn't do much.
sourceSets {
main {
aidl.srcDirs = ['src/main/aidl']
}
}
sourceSets {
main {
aidl.srcDirs = ['src/main/aidl']
}
}
uc...@google.com <uc...@google.com>
je...@google.com <je...@google.com>
bs...@gmail.com <bs...@gmail.com> #12
Hello, please provide the manufacturer's registered code with thanks
sa...@gmail.com <sa...@gmail.com> #13
I am using openVPN and unable to load aidl file from openVPN Library also added sourceSets in build.gradle file but no success till now..
Any one here can help me on it..?
Any one here can help me on it..?
ra...@gmail.com <ra...@gmail.com> #14
I am also working building a vpn app using openVPN library. Maybe I can help you. Can you share me your email address or any social contact? I also need help in some areas.
Description
OS version: Linux OpenSuse 12.3
Java JRE/JDK version:java version "1.7.0_21"
Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)
Gradle plugin 0.4.2
I created a new project with AS new project wizard and added an AIDL file (created using one of AS New File options). The build run does not detect the AIDL file an hence does not process it. To solve this I had to add the AIDL srcDir property to the build file. Here a snippet of my build file:
...
android {
compileSdkVersion 17
buildToolsVersion "17"
defaultConfig {
minSdkVersion 10
targetSdkVersion 16
}
sourceSets {
main {
aidl.srcDirs = ['src/main/java']
}
}
}
...
I expect that gradle android detects the AIDL files automagically ;-) .