Reputation: 4069
I'm trying to implement Push notifications into my Android app using the Azure Notifications Hub. I have followed the instructions here but when I get to the step for Adding Azure Notification Hubs libraries
I am getting stuck. First off, there is no file at the Files tab on the link they provide that is named notification-hubs-0.4.jar
so I assume the one I want is notification-hubs-android-sdk-0.4.jar
. So I downloaded it and included it in my assets\libs folder. I then followed the instructions and added the required lines to my build.gradle file but I keep getting an error stating
Execution failed for task ':app:processDebugResources' Process 'command 'C:\pathtothefile...\aapt.exe'' finished with a non-zero exit value 1.
My build.gradle file looks like this...
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"
}
}
Am I doing something completely wrong here? Could someone please point out my error?
Upvotes: 0
Views: 1005
Reputation: 326
we will update the documentation properly as well, but as we do so, add compile 'com.microsoft.azure:notification-hubs-android-sdk:0.4@aar' into dependencies and see if that works.
Upvotes: 2