【发布时间】:2016-05-28 06:40:33
【问题描述】:
我正在尝试使用 Azure 通知中心将推送通知实现到我的 Android 应用程序中。我遵循了here 的说明,但是当我到达Adding Azure Notification Hubs libraries 的步骤时,我被卡住了。首先,他们提供的链接上的“文件”选项卡上没有名为notification-hubs-0.4.jar 的文件,所以我假设我想要的是notification-hubs-android-sdk-0.4.jar。所以我下载了它并将它包含在我的 assets\libs 文件夹中。然后我按照说明将所需的行添加到我的 build.gradle 文件中,但我不断收到错误提示
任务 ':app:processDebugResources' Process 'command 'C:\pathtothefile...\aapt.exe'' 以非零退出值 1 结束执行失败。
我的 build.gradle 文件看起来像这样...
android {
compileSdkVersion 23
buildToolsVersion '23.0.2'
useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId "com.myapplicationid.android"
minSdkVersion 10
targetSdkVersion 23
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-project.txt'
}
}
}
dependencies {
compile 'com.google.android.gms:play-services:8.4.0'
compile 'com.microsoft.azure:azure-notifications-handler:1.0.1@aar'
compile files('src/main/assets/libs/android-maps-extensions.jar')
compile files('src/main/assets/libs/android-viewbadger.jar')
}
repositories {
maven {
url "http://dl.bintray.com/microsoftazuremobile/SDK"
}
}
我在这里做错了吗?有人可以指出我的错误吗?
【问题讨论】:
标签: android azure azure-mobile-services azure-notificationhub