草庐IT

compiler-specific

全部标签

java - Android Jack : Lambda coming from jar file need their interfaces on the classpath to be compiled, 未知接口(interface)是 java.util.function.Consumer

在androidstudio2.2上得到这个。有人有解决方法吗?我的应用构建文件是:applyplugin:'com.android.application'android{compileSdkVersion24buildToolsVersion"24.0.2"defaultConfig{applicationId"acme.cb2"minSdkVersion18targetSdkVersion24versionCode1versionName"1.0"jackOptions{enabledtrue}}compileOptions{sourceCompatibilityJavaVers

android - 毕业: apply plugin only for specific flavor

我的Androidgradle目前为使用不同的推送服务设置了flavor维度。(一个用于百度推送,一个用于GCM)我想让我的Android应用程序只导入google-services以获得GCM推送构建风格。有可能吗?P.S.因为为了在Android中使用GCM,我必须在applyplugin:'com.google.gms.google-services'行我的app/build.gradle文件的底部,详细here.为了让百度风格构建成功,我可能需要为百度放置一个虚拟google-services.json。更新:我似乎在this中找到了答案长github问题线程。

android - 毕业: apply plugin only for specific flavor

我的Androidgradle目前为使用不同的推送服务设置了flavor维度。(一个用于百度推送,一个用于GCM)我想让我的Android应用程序只导入google-services以获得GCM推送构建风格。有可能吗?P.S.因为为了在Android中使用GCM,我必须在applyplugin:'com.google.gms.google-services'行我的app/build.gradle文件的底部,详细here.为了让百度风格构建成功,我可能需要为百度放置一个虚拟google-services.json。更新:我似乎在this中找到了答案长github问题线程。

安卓 : Get notification when user enter in specific location

我正在开发android应用程序,当用户进入特定位置时会发出通知用户可以使用经纬度指定位置(即谷歌地图)我知道如何获取纬度和经度,但我的问题是当用户输入特定位置时,它不会与之前指定的纬度和经度完全匹配。如图所示,假设用户在进入区域(约20米)时指定名为“MyPlace”的位置,则应用程序应向用户发送通知。我想知道如何比较用户指定的纬度和经度(我的位置)和应用程序通过GPS获取的当前纬度和经度。以这样的方式进行比较,如果用户在我的地方附近20米的区域内,它将是真实的。(这20米是近似值。)我可以在android中设置精度吗?20米。谢谢。 最佳答案

安卓 : Get notification when user enter in specific location

我正在开发android应用程序,当用户进入特定位置时会发出通知用户可以使用经纬度指定位置(即谷歌地图)我知道如何获取纬度和经度,但我的问题是当用户输入特定位置时,它不会与之前指定的纬度和经度完全匹配。如图所示,假设用户在进入区域(约20米)时指定名为“MyPlace”的位置,则应用程序应向用户发送通知。我想知道如何比较用户指定的纬度和经度(我的位置)和应用程序通过GPS获取的当前纬度和经度。以这样的方式进行比较,如果用户在我的地方附近20米的区域内,它将是真实的。(这20米是近似值。)我可以在android中设置精度吗?20米。谢谢。 最佳答案

android - : Should explicitly set 'android:fullBackupContent' to avoid backing up the GCM device specific regId?是什么意思

这个Lint警告是什么意思:Shouldexplicitlyset'android:fullBackupContent'toavoidbackinguptheGCMdevicespecificregId?我已经用谷歌搜索了,但还没有找到任何东西。 最佳答案 disturbing的一部分"autobackupforapps"是通过android:fullBackupContent控制备份哪些文件的能力。该属性指向一个XML资源(例如,@xml/backup_rulez),它描述了控制备份内容的白名单或黑名单。Lint警告警告您的是不备

android - : Should explicitly set 'android:fullBackupContent' to avoid backing up the GCM device specific regId?是什么意思

这个Lint警告是什么意思:Shouldexplicitlyset'android:fullBackupContent'toavoidbackinguptheGCMdevicespecificregId?我已经用谷歌搜索了,但还没有找到任何东西。 最佳答案 disturbing的一部分"autobackupforapps"是通过android:fullBackupContent控制备份哪些文件的能力。该属性指向一个XML资源(例如,@xml/backup_rulez),它描述了控制备份内容的白名单或黑名单。Lint警告警告您的是不备

android - 无法为 org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler 类型的对象获取未知属性 'compile'

我正要添加谷歌地图Activity,我的androidstudio显示这个错误Error:Error:line(25)Couldnotgetunknownproperty'compile'forobjectoftypeorg.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.这是我的解析项目Gradle文件applyplugin:'com.android.application'android{compileSdkVersionrootProject.ext.compileSdkVersion

android - 无法为 org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler 类型的对象获取未知属性 'compile'

我正要添加谷歌地图Activity,我的androidstudio显示这个错误Error:Error:line(25)Couldnotgetunknownproperty'compile'forobjectoftypeorg.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.这是我的解析项目Gradle文件applyplugin:'com.android.application'android{compileSdkVersionrootProject.ext.compileSdkVersion

安卓 NDK : Link using a pre-compiled static library

我正在尝试将Jnetpcap移植到Android,以便使用它来解析.pcap文件。Jnetpcap是一个使用JNI的libpcap的java包装器。我已经使用android的源代码树将libpcap编译为静态库。将Jnetpcap编译为共享库时出现错误,因为我必须与libpcap.a链接,但我不知道如何告诉Android.mk他必须与我拥有的libpcap.a文件链接.使用“LOCAL_STATIC_LIBRARIES:=libpcap”将不起作用,因为libpcap在androidNDK中默认不提供。如果有人能帮助我,我将非常感激。这是我当前的Android.mk文件:include