2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

EclipseからAndroid Studioに移行する時のめも。 (IInAppBillingService.aidl)

Last updated at Posted at 2016-09-06

ファイルの配置が変わったので注意する。

Eclipseの場合:
(プロジェクトのルート)/src/com/android/vending/billing/IInAppBillingService.aidl

Android Studioの場合: AIDLフォルダに入れる必要がある。
(プロジェクトのルート)/app/src/main/aidl/com/android/vending/billing/IInAppBillingService.aidl

※ここではない。
(プロジェクトのルート)/app/src/main/java/~

蛇足:
(aidl)ファイルを移動する時は、(Android Studio内ではなく)エクスプローラを開いて移動した方が無難です。気をつけないと、変なRefactorが・・

参考:
https://developer.android.com/google/play/billing/billing_integrate.html#billing-add-aidl
Adding the AIDL file to your project

http://stackoverflow.com/questions/21268595/iinappbillingservice-aidl-cannot-generate-java-file-in-android-studio
src(java)フォルダではなくて、aidlフォルダに入れないと動かないよ!という回答。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?