草庐IT

keyword-library

全部标签

android - 找不到 ID 为 'com.android.library' 的插件

这个问题在这里已经有了答案:AndroidStudio:Pluginwithid'android-library'notfound(10个答案)关闭6年前。当我尝试在AndroidStudio中使用库项目时收到此错误。build.gradle中给出此错误的特定行是applyplugin:'com.android.library'我什至尝试将其更改为applyplugin:'android-library'但它仍然不起作用,而是显示:Error:(7,0)Pluginwithid'android-library'notfound。我什至尝试添加:classpath'com.android

android - Circular Reveal Android Compat With Design Library 28

如何使用设计库版本28在Android中创建圆形显示动画我看到很少有类(class)有像这样的项目:android.support.design.circularreveal.CircularRevealFrameLayoutandroid.support.design.circularreveal.CircularRevealGridLayoutandroid.support.design.circularreveal.CircularRevealLinearLayoutandroid.support.design.circularreveal.CircularRevealRelat

android - 如何使用适用于 Android 的 Android Maps Utility Library 显示 InfoWindow

我正在使用GoogleMapsAndroidAPIUtilityLibrary为了以集群方式在map中显示多个标记。我已按照说明使其工作,并查看了库中的示例,但我不知道如何在单击标记时显示InfoWindow。我猜getMap().setOnMarkerClickListener(mClusterManager);是管理onClick事件的那个,如果被注释掉,我可以使用getMap覆盖它().setInfoWindowAdapter(newInfoWindowAdapter(){));但我无权访问我的自定义标记对象。然而,如果我使用getMap().setOnMarkerClickLi

android - Android 上的 GdxRuntimeException : couldn't load shared library 'gdx' for target

我开发了一个Libgdx应用程序并在我的SamsungGalaxyS3(4.1.2)上测试了它,它运行良好。我试图在GalaxyGrand(4.1.2)上测试它但失败了。在logcat中,我发现了以下内容:causedbycom.badlogic.gdx.utils.GdxRuntimeExceptioncouldn'tloadsharedlibrary'gdx'fortarget:Linux,32-bit这只是在更换设备时发生的,所以知道是什么原因吗?!完整的logcat:05-2220:25:01.745:E/AndroidRuntime(12725):FATALEXCEPTION

java - Android Gradle list 合并 : Override 'uses-permission' attribute coming from a library

对于我使用最新的AndroidStudio开发的应用程序,我在它的gradle文件中使用了这个依赖项:dependencies{compile'com.android.support:support-v4:21.0.+'compile'com.helpshift:android-aar:3.7.1'}com.helpshift:android-aar:3.7.1对于我在主应用程序中未使用的功能,库需要以下权限:如所述here和here我可以覆盖导入库的activityXML声明中的属性。但我是否也可以覆盖ma​​nifestXML声明,如提到的uses-permission?我已经在我

android - Android In-app Billing Library 与 In-app Billing API 哪个有更好的优势

我遇到了应用内结算库(使用BillingClient)和应用内结算API(使用IInAppBillingService)都用于管理订阅,我的问题是在什么情况下必须使用哪个。我正在使用In-appBillingAPI进行测试并检查应用程序启动画面上的订阅状态。我的逻辑很简单,使用getPurchases()方法获取购买状态。如果getPurchases()返回空,我认为“未购买状态”否则“购买状态”。如果出现以下标准,这会解决吗?1.延迟计费2.购买过期如果定期付款失败(例如,因为客户的信用卡失效),则订阅不会续订。getPurchases()方法不会返回失败或过期的订阅。是什么意思Bu

android - 库 com.google.android.gms :play-services-basement is being requested by various other libraries at [[15. 0.1,15.0.1]],但解析为 11.8.0

我想在我的应用上添加带有firebase的通知。我在YouTube上关注了一个视频(https://www.youtube.com/watch?v=xx7hemn3FY4)但是当我在我的flutter项目中做同样的事情时出现错误:[[15.0.1,15.0.1]]的各种其他库正在请求库com.google.android.gms:play-services-basement,但解析为11.8.0。禁用插件并使用./gradlew:app:dependencies检查你的依赖树。如您在评论中看到的,我尝试了几件事。项目等级:buildscript{repositories{google(

android - 库 com.google.android.gms :play-services-basement is being requested by various other libraries at [[15. 0.1,15.0.1]],但解析为 11.8.0

我想在我的应用上添加带有firebase的通知。我在YouTube上关注了一个视频(https://www.youtube.com/watch?v=xx7hemn3FY4)但是当我在我的flutter项目中做同样的事情时出现错误:[[15.0.1,15.0.1]]的各种其他库正在请求库com.google.android.gms:play-services-basement,但解析为11.8.0。禁用插件并使用./gradlew:app:dependencies检查你的依赖树。如您在评论中看到的,我尝试了几件事。项目等级:buildscript{repositories{google(

android - 从 Android-Library-Project 启动 Activity

经过长时间的搜索,我找不到任何合适的解决方案。我有一个Android-Library项目,其中包含该应用程序的几乎所有代码。从库项目中的主要Activity开始,我启动了一个明确的ActivityA的Intent。在我使用库项目的派生项目中,我扩展了这个ActivityA并添加了一些新代码。问题是ActivityA的父类(superclass)而不是派生类会响应。在使用库项目的新项目的list中,我用新包声明了新Activity。这是来自图书馆项目的Intent调用:Intenti=newIntent(getApplicationContext(),AndroidActivity.cl

android - 针对 SDK Android Q 导致无法完成 session : INSTALL_FAILED_INVALID_APK: Failed to extract native libraries, res=-2

一旦我将目标api切换为“Q”,我就无法在AndroidQ模拟器上安装APK。我得到错误:Failedtofinalizesession:INSTALL_FAILED_INVALID_APK:Failedtoextractnativelibraries,res=-2AndroidStudio(v3.3.2)建议我先卸载apk。我尝试卸载apk,但仍然出现相同的错误。如果我将目标api降级到28,应用程序工作。 最佳答案 发生这种情况是因为zipalign存在问题,请参阅-https://issuetracker.google.com