草庐IT

default-compile

全部标签

安卓 NDK/JNI : "No rule to make target" error when compiling my hybrid iOS/Android project

在完成“makeclean”(执行makefile的内容)后,我正在尝试编译我的iOS/Android混合项目(使用build_native.sh)。我实际上是按照本教程中描述的步骤操作的:http://gameit.ro/2012/01/creating-an-iphone-and-android-cocos2d-x-hybrid-project-updated/#comment-635但是在尝试编译时出现以下错误:**Noruletomaketargetjni/../../libs/cocos2dx/platform/CCFileUtils.cpp',需要obj/local/arm

android - 未找到名称为 'default' 的配置 - HoloGraphLibrary

我正在尝试在我的android项目中安装HoloGraphLibrary。但是每次同步gradle时我都会收到这条消息:Error:Configurationwithname'default'notfound.这是我的Android菜单和库文件夹:-app-build-libraries-HoloGraphLibrary-.settings-res-srcAndroidManifest.xmlbuild.gradleHoloGraphLibrary.imlHoloGraphLibrary-HoloGraphLibrary.imlLICENSE.txtNOTICE.txtproguard

安卓 8 : firebase default notification icon not showing up

我正在为我的应用程序使用firebaseFCM,并在list中设置自己的通知图标:在我测试过的Oreo之前的每个Android中(API21、API23),图标正确显示在推送通知View中,作为一个带有colorPrimary背景和白色的大圆圈ic_custom里面。在Android8.0中,图标显示为填充colorPrimary的小圆圈,内部没有任何图标。我在这里缺少什么? 最佳答案 解决了将FCM依赖项更新为com.google.firebase:firebase-messaging:15.0.2

安卓工作室 : Testing: Library dependencies that have been compiled using java 8 or above

请帮忙。我在为androidstudio设置测试时遇到了非常糟糕的时间。我已经从cucumbergithub下载了计算器示例来练习cumcumber代码测试。https://github.com/cucumber/cucumber-jvm/tree/master/android(顺便说一句,其中一些品牌的名字非常奇怪)我尝试将它与AndroidStudio一起使用。该程序运行完美(耶!)。然而,测试没有。我有一个非常可怕的消息,每次运行它时都会困扰我。*Torundexinprocess,theGradledaemonneedsalargerheap.Itcurrentlyhasapp

android - 错误 : Default interface methods are only supported starting with Nougat (--min-api 24) when NOT using them

在编译我的libgdx游戏时,我从android-studio收到以下错误:Error:DefaultinterfacemethodsareonlysupportedstartingwithAndroidN(--min-api24):com.hgames.core.item.Itemcom.hgames.core.item.misc.MiscItem.deepClone()我不明白,因为我不使用默认接口(interface)方法。我的代码在JDK1.7上编译得很好。此处报告的错误涉及以下代码:interfaceItem{ItemdeepClone()}interfaceMiscItem

安卓广播接收器 : run it on default process or in a new one?

我有一个包含两个广播接收器的应用程序,一个用于接收数据,另一个用于发送数据。我已经看到它们有一个属性android:process使它们在应用程序的默认进程或另一个进程中运行。在我使用google找到的示例中,接收器设置为在进程“:remote”中运行。我的问题是,使用每个选项的优点和缺点是什么? 最佳答案 当您想与另一个应用程序共享资源时,使用与应用程序的默认进程不同的进程会很方便。要执行此操作,您需要安排两个具有相同进程名称的应用程序,如果您的进程名称以小字符开头,则会生成一个全局进程。如果它以冒号:开头,则该过程是私有(pri

Android studio:Could not find method compile() for arguments 问题解决及两种解决方法探讨延伸

Couldnotfindmethodcompile()forarguments问题全称Couldnotfindmethodcompile()forarguments[org.tensorflow:tensorflow-lite:+]onobjectoftypeorg.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.如图解决方法1(简单)将compile改为implementation即可,如图参考博客couldnotfindmethodcompile()forarguments解决方法2(进阶)将c

Java 模块没有 `api` ,必须使用 `compile` ?

如https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html#new_configurations中所述,我们现在有api和implementation。在Android模块中,即applyplugin:'com.android.application',我们两者都有。然而,在普通的Java模块中,即applyplugin:'java'(由我的Android应用程序模块使用),我只能找到implementation,但找不到api.因此在其中一个依赖中,我需要使用compile,而不能使用a

android - 如何修复错误 Gradle DSL 方法未找到 : 'compile()' ?

我正在尝试将googleplay计费库与我的android应用程序集成,当我尝试添加此依赖项时(compile'com.android.billingclient:billing:1.0')在应用程序模块的build.gradle文件。我收到以下错误:ERROR:GradleDSLmethodnotfound:'compile()'Possiblecauses:Theproject'work'maybeusingaversionoftheAndroidGradleplug-inthatdoesnotcontainthemethod(e.g.'testCompile'wasaddedin

android - : notification. 标志和 notification.defaults 之间有什么区别?

在我的测试代码中,我使用了notification.flags|=Notification.DEFAULT_SOUND;notification.flags|=Notification.DEFAULT_LIGHTS;这没有用,根据我在anotherquestion上得到的答案我将.flags更改为.defaults并且它有效。notification.defaults|=Notification.DEFAULT_SOUND;notification.defaults|=Notification.DEFAULT_LIGHTS;在documentation两个字段:标志和默认值是相同的。我