Where should i put IInAppBillingService.aidl file in Android Studio? - android

Hi i have added IInAppBillingService.aidl file to ../main/aidl/com/android/vending/billing/ directory but no java file generated. What am i missing?

i found the answer. just in case this happens someone else, i am writing the answer. You just need to sync files with sync tool of gradle.

Related

Not all items in assets folder get packaged in APK

I'm new to Android Studio. I packaged up and built an app. Now I'm trying to change whats in my assets folder but some images aren't making it into the APK. I know this because I changed it to a zip extension and extracted but there missing. I've tried the sync project with gradle files and the sync with file system options but there not helping. Obviously there's a step I'm missing here. Any ideas?
The Rebuild Project option ended up doing the trick. I'm still not sure why the sync functions didn't take care of the issue. O well Im sure I'll run into the answer eventually.

Android Studio .ignore plugin. Proper destination for gitignore file

I use .ignore plugin to create my gitignore file.
When I select .gitignore file, then this window shows up.
My question is rather simple. What is the proper destination for gitignore file? Is there any rule? Or maybe it's totally up to me?

Android Studio How to fix cannot create class-file error?

I am following the steps mentioned here: https://priyankvex.wordpress.com/2015/08/30/how-to-build-tesseract-ocr-library-for-android-studio/
Step 3 tells to copy and paste the tess-two folder to my Project but when I paste, I get an error stating Cannot create class-file and none of my `.java' files get copied.
Where am I going wrong?
I don't know what the problem is but it works, if you copy the folder directly into the project folder instead of copying through the Android Studio.
Maybe for some reason the files are not copied in the Android Studio.
It is because some .class files are included in your copy files.
Some IDE will not include .class file in project and show this tips.

Error when importing Library in android

I am trying to implement Google Analytics in my android app for that I need to import one library. when I am trying to import that library it shows one error like
Could not write file: C:\Documents and Settings\ignite054\Desktop\i\Version
4\Project\PashuPalan\.classpath.
C:\Documents and Settings\ignite054\Desktop\i\Version 4\Project\PashuPalan\.classpath
(Access is denied)
How to solve this? please help me.
First copy the jar file from the android-sdk\extras\google\analytics_sdk_v2\libGoogleAnalytics.jar and add it into your projects libs folder.
The try to add library libGoogleAnalytics.jar to build path (in libs right click on libGoogleAnalytics.jar -> BuildPAth -> Add to Build Path).
Do not add anything in Manifest file and in your java file use Ctrl+Shift+O to automatically organize your imports.
Make sure that the directory and file is still there.
And, take a look that C:\Documents and Settings\ignite054\Desktop\i\Version
4\Project\PashuPalan is a valid path, has a .classpath file and it is readable.
Maybe .classpath file is hidden, removing the hidden attribute may resolve the issue.

ITelephony.aidl not compiling in eclipse

I am using the code of this answer, where as I have to add ITelephony.aidl to my project source, I did that.
But this aidl file not compiling. Is there any other step which are required?
First create a package in the src folder in your project named com.android.internal.telephony and within that package create a file and copy paste the interface ITelephony and save the file as ITelephony.aidl. When you compile you will get the .java file for the ITelephony in the gen folder.This is what I did and my issue got solved.
Hope this helps
If your aidl file is showing any error in eclipse then you should consider it and post the error here but if it is not showing any error you must clean your project and build it again. After this process you must go in "gen" folder and check either this file is compiled there and any class is exist with the same name of aidl file. If it is found, its mean aidl file is compiling properly.
Thanks and Regards,
Ali
Certin versions of Eclipse move the reference library folders for prjects.Either update eclipse, reinstall eclipse and the adt plug in or move the library within your eclipse folder.

Categories

Resources