久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

如何將aidl文件添加到Android工作室(來自應用內計

how can I add the aidl file to Android studio (from the in-app billing example)(如何將aidl文件添加到Android工作室(來自應用內計費示例))
本文介紹了如何將aidl文件添加到Android工作室(來自應用內計費示例)的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我目前正在將 Eclipse 應用程序遷移到 Android Studio.此應用正在使用應用內計費.

我的主要問題是編譯項目和aidl文件(我猜你們都使用

  • http://developer.android.com/guide/components/aidl.html
  • 解決方案

    正如錯誤信息所說,您需要將 IInAppBillingService.aidl 放在它的包指定的正確目錄中(com.android.vending.billing).

    在您已有的 src/main/aidl/ 文件夾中,將 .aidl 文件放入 com/android/vending/billing/.

    I am currently migrating an Eclipse app to Android Studio. This app was using the in app billing.

    My main problem is to compile the project and the aidl file (I guess you all use this file)

    I get this error message:

    Gradle: error: cannot find symbol class IInAppBillingService
    Gradle: error: package IInAppBillingService does not exist
    

    So, following some tutorials, I move this file from com.mypackage.billing to src/main/aidl (see this reference)

    But as soon, as I do that, I get this message:

    Gradle: Execution failed for task ':xxxxxxxxxxx:compileDebugAidl'.

    Failed to run command: (...) C:UsersxxxxAndroidStudioProjectsxxxxxxProjectxxxxxxxsrcmainaidlIInAppBillingService.aidl:45 interface IInAppBillingService should be declared in a file called comxxxxxxxxillingIInAppBillingService.aidl.

    The message is clearly a contradiction with the post from the Google bug page I linked above.

    Anyone suceeded to make this aidl file to work and can help me?

    Just to inform, some links I followed:

    • http://tools.android.com/tech-docs/new-build-system/user-guide
    • http://developer.android.com/guide/components/aidl.html

    解決方案

    Just as the error message says, you need to put IInAppBillingService.aidl in the correct directory dictated by it's package (com.android.vending.billing).

    Within the src/main/aidl/ folder you already have, put the .aidl file in com/android/vending/billing/.

    這篇關于如何將aidl文件添加到Android工作室(來自應用內計費示例)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

    【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

    相關文檔推薦

    IncompatibleClassChangeError after updating to Android Build Tools 25.1.6 GCM / FCM(更新到 Android Build Tools 25.1.6 GCM/FCM 后出現 IncompatibleClassChangeError)
    How to get current flavor in gradle(如何在 gradle 中獲取當前風味)
    How to fix quot;unexpected element lt;queriesgt; found in lt;manifestgt;quot; error?(如何修復“意外元素lt;查詢gt;在“清單中找到錯誤?)
    Multi flavor app based on multi flavor library in Android Gradle(基于 Android Gradle 中多風味庫的多風味應用)
    Android dependency has different version for the compile and runtime(Android 依賴在編譯和運行時有不同的版本)
    Transitive dependencies for local aar library(本地 aar 庫的傳遞依賴)
    主站蜘蛛池模板: 天天操夜夜爽 | 福利视频网站 | 午夜羞羞 | 九九热久久免费视频 | 欧美在线一区二区三区四区 | 一区二区中文字幕 | 日韩一区二区福利视频 | 男女羞羞的网站 | 91豆花视频 | a视频在线观看 | 久久曰视频 | 国产精品国产精品国产专区不蜜 | 日本一区二区不卡 | 久久久久国产一区二区三区 | 区一区二区三在线观看 | 精品国产一区二区三区久久久四川 | 久久久精品一区二区三区四季av | 久久综合亚洲 | 欧美久久久久 | 精品伊人| 日本黄色大片免费看 | 毛片.com | 国产日本精品视频 | 国产精品呻吟久久av凹凸 | 91porn成人精品 | 黄色三级免费网站 | 日韩高清中文字幕 | 国产视频一二三区 | 久草影视在线 | 国产精品大片在线观看 | 日本韩国欧美在线观看 | 亚洲视频区 | 精品久久久久久红码专区 | 99久热| 国产乱码精品一区二区三区五月婷 | 日本免费在线观看视频 | 欧美在线色 | 天天色天天射天天干 | 欧美精品一二三区 | 国产人免费人成免费视频 | 日韩小视频|