我刚刚开始使用android开发并尝试使用Room库。从昨天开始我就面临着这个警告信息
w:[kapt]请求了增量注释处理,但是由于以下处理器不是增量处理器,因此禁用了支持:androidx.lifecycle.LifecycleProcessor(NON_INCREMENTAL),androidx.room.RoomProcessor(NON_INCREMENTAL)。
我已经尝试研究和修复,但无法避免此错误,这是我的grale.build文件。请提出建议/建议我在做什么错。
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
applicationId "ps.room.bookkeeper"
minSdkVersion 15
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
javaCompileOptions {
annotationProcessorOptions {
arguments = ["room.schemaLocation":"$projectDir/schemas".toString()]
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.core:core-ktx:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.android.material:material:1.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
// …Run Code Online (Sandbox Code Playgroud) 我在重启rabbitmq服务时遇到一个奇怪的错误,因此我无法重启RabbitMQ服务.我从EventViewer收到此消息并试图通过谷歌搜索找到解决方案,但没有运气..请建议.
RabbitMQ:Erlang机器自愿停止.由于OnFail设置为ignore,因此不会重新启动该服务.
谢谢
嗨,我想尝试gcm但无法使其工作.不知道我在哪里弄乱它,下面是我得到的错误.我正在尝试直接在设备上部署我的应用程序并从那里进行调试,但是当我尝试部署它时会出现此错误
Waiting for device.
Target device: HT24LW108632
Uploading file
local path: D:\Data\Android\AndroidTest\out\production\AndroidTest\AndroidTest.apk
remote path: /data/local/tmp/Android.Test
Installing Android.Test
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/Android.Test"
pkg: /data/local/tmp/Android.Test
Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]
Run Code Online (Sandbox Code Playgroud)
AndroidManifest.xml中
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="Android.Test"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="14"/>
<permission
android:name="Android.Test.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="Android.Test.permission.C2D_MESSAGE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<application android:label="@string/app_name" android:icon="@drawable/ic_launcher">
<activity android:name="MainActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<receiver
android:name="com.google.android.gcm.GCMBroadcastReceiver"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<action …Run Code Online (Sandbox Code Playgroud) java android android-manifest android-emulator google-cloud-messaging
我有2个XSD文件.
一个XSD文件可以说ABC.xsd包含属于XML的元素.另一个XSD文件让我们说XYZ.xsd包含这些元素的定义.
现在在ABC.XSD(包含元素)模式标记以及其他名称空间中,我们也提到了schemalocation
<xs:schema schemaLocation="XYZ.xsd">
Run Code Online (Sandbox Code Playgroud)
当我执行xsd.exe来生成我的C#类时.它正在生成类,但缺少XYZ.xsd中的一些定义.
我正在执行
xsd.exe "ABC.xsd" "XYZ.xsd" /c
Run Code Online (Sandbox Code Playgroud)
任何帮助都会有所帮助
编辑1: @Felice,在我的XYZ.xsd中,我有这样的定义
<xs:simpleType name="contactNumberType">
<xs:annotation>
<xs:documentation>Contact phone or fax number with national or international format. Only numbers are allowed</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:pattern value="\+?\p{N}{6,24}"/>
</xs:restriction>
</xs:simpleType>
Run Code Online (Sandbox Code Playgroud)
看到这里定义的模式,它没有出现在C#类中.任何帮助.对不起,我是新来的.谢谢你的回答
我需要在我的c#应用程序中集成OpenStreet Map,因为我已经在google和bing上做了一些研究工作并实现了他们的许可限制.现在我想要集成OpenStreet Map
要完成的任务:1.在地图上显示地图和车辆位置.2.允许用户通过在地图上绘制线条或形状(三角形,矩形或圆形)来定义地图上的区域或半径,并获得精确计算的长/纬度,半径,距离等
我对这个领域完全陌生,不知道,努力获取知识,但由于时间限制,我遇到了困难.
如果某个机构可以分享他们的经验并通过博客,样本等指导我朝着正确的方向发展.
谢谢
有人可以指导我从Microsoft PUSH Notification Services生成的URI的长度吗?
我得到的URL字符串长度为120.我只想确保每当我的Windows手机应用程序将从MPNS接收新URI时,它总是120字节长.如果它可以更长,那么它可以多久?
我正在研究Android中的推送通知.现在的问题是,我想在应用程序启动后立即在后台运行推送通知,因为我不知道服务器何时将数据推送到设备.
主要要求是我们的企业应用程序有超过10个活动,并根据收到的通知,我必须将相关活动放在前台,以便用户可以对此执行操作或在后台执行一些静默操作,无论活动如何在前景.
有人可以建议我如何实现这种类型的要求.我是否需要在服务中执行此操作.
谢谢
java android android-service android-c2dm google-cloud-messaging
有没有办法我们可以使用.net应用程序发送短信而不使用任何第三方服务.像短信网关等....简单哪些不会花费我们?
我不知道......只是问.
请帮忙..
谢谢
在我的应用程序中,我正在使用GCM服务.我想在onMessage函数上发出嘟嘟声或播放一个小的mp3文件.
我的GCMIntentService是从GCMBaseIntentService扩展的.
有人可以分享代码或建议我如何实现这一目标.
谢谢
我在c#中使用GMAP.NET.我能够在表单上显示地图,现在我试图通过单击一个certian点来绘制CIRCLE鼠标,保持鼠标左键并将鼠标拖动到特定位置.一旦绘制了圆形,我想从中心点获得半径,我确信GMAP能够做到这一点.我正在使用Opentstreet地图.
我只是无法实现这一功能,任何玩过GMAP控制的人都会与一些可行的代码分享您的经验.
谢谢
c# ×5
android ×4
.net ×2
java ×2
android-c2dm ×1
android-room ×1
gmap.net ×1
google-maps ×1
mpns ×1
rabbitmq ×1
sms ×1
winforms ×1
xml ×1
xsd ×1