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

如何將aidl文件添加到Android工作室(來自應(yīng)用內(nèi)計

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

問題描述

我目前正在將 Eclipse 應(yīng)用程序遷移到 Android Studio.此應(yīng)用正在使用應(yīng)用內(nèi)計費.

我的主要問題是編譯項目和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/.

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

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

    相關(guān)文檔推薦

    IncompatibleClassChangeError after updating to Android Build Tools 25.1.6 GCM / FCM(更新到 Android Build Tools 25.1.6 GCM/FCM 后出現(xiàn) IncompatibleClassChangeError)
    How to get current flavor in gradle(如何在 gradle 中獲取當(dāng)前風(fēng)味)
    How to fix quot;unexpected element lt;queriesgt; found in lt;manifestgt;quot; error?(如何修復(fù)“意外元素lt;查詢gt;在“清單中找到錯誤?)
    Multi flavor app based on multi flavor library in Android Gradle(基于 Android Gradle 中多風(fēng)味庫的多風(fēng)味應(yīng)用)
    Android dependency has different version for the compile and runtime(Android 依賴在編譯和運行時有不同的版本)
    Transitive dependencies for local aar library(本地 aar 庫的傳遞依賴)
    主站蜘蛛池模板: 国产一区二区a | 欧美精品一区二区三区四区五区 | 成年人在线视频 | 天天拍天天操 | 国产精品久久久久aaaa樱花 | 久久久.com | 日韩国产一区二区三区 | 亚洲一本| 日韩一区二区三区在线 | 国产一区免费视频 | 精品不卡 | 亚洲精品一二三 | 欧美中文一区 | 亚洲一区网站 | 日韩精品在线播放 | 久久久999成人| 岛国在线免费观看 | 欧美日韩综合精品 | 91porn在线| 日韩中文字幕在线播放 | 久久久人成影片一区二区三区 | 国产欧美精品一区二区 | 中文字幕人成人 | 国产精品一区二区久久 | 欧美国产精品一区二区三区 | 亚洲精彩视频 | 无码一区二区三区视频 | 亚洲天堂男人的天堂 | 国产在线精品一区二区 | 精品视频导航 | 成人免费视频观看视频 | 产真a观专区 | 日日爱av | 2020亚洲天堂 | 国产成人久久精品一区二区三区 | 国产日韩一区二区三区 | 国产一级片av | 情侣酒店偷拍一区二区在线播放 | 日韩精品在线视频免费观看 | 亚洲a视频 | 欧美色综合天天久久综合精品 |