I recently tried testing local backend support on my app and have faced some gradle build issues. Below is the error I am getting:
Error:Execution failed for task ':app:dexDebug'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2
Here is my Manifest:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<permission
android:name="com.example.gcm.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="com.example.gcm.permission.C2D_MESSAGE" />
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="#string/app_name"
android:screenOrientation="portrait" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".LoginActivity"
android:label="#string/title_activity_login"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".SignUpActivity"
android:label="#string/title_activity_sign_up"
android:parentActivityName=".LoginActivity"
android:screenOrientation="portrait" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="yassin.marc.guardianreader.LoginActivity" />
</activity>
</application>
Here is the build.gradle (app):
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
//applicationId
minSdkVersion 14
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.2.1'
compile 'com.android.support:recyclerview-v7:22.2.1'
compile 'com.daimajia.swipelayout:library:1.2.0#aar'
compile 'com.daimajia.androidanimations:library:1.1.2#aar'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.android.support:support-v4:22.2.1'
compile 'de.hdodenhof:circleimageview:1.2.1'
compile 'com.google.android.gms:play-services:7.5.0'
compile project(path: ':backend', configuration: 'android-endpoints')
}
And here is build.gradle (backend):
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.google.appengine:gradle-appengine-plugin:1.9.18'
}
repositories {
jcenter();
}
apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'appengine'
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
dependencies {
appengineSdk 'com.google.appengine:appengine-java-sdk:1.9.18'
compile 'com.google.appengine:appengine-endpoints:1.9.18'
compile 'com.google.appengine:appengine-endpoints-deps:1.9.18'
compile 'javax.servlet:servlet-api:2.5'
compile 'com.googlecode.objectify:objectify:4.0b3'
compile 'com.ganyo:gcm-server:1.0.2'
}
appengine {
downloadSdk = true
appcfg {
oauth2 = true
}
endpoints {
getClientLibsOnBuild = true
getDiscoveryDocsOnBuild = true
}
I tried removing redundant dependencies but haven't found success in that. I'm wondering if you guys could give me some help! Any help is highly appreciated!
I found a workaround. I added
multiDexEnabled true
to defaultconfig:
defaultConfig {
//applicationId
minSdkVersion 14
targetSdkVersion 22
versionCode 1
versionName "1.0"
multiDexEnabled true
}
Related
I uploaded my apk it always shows that it is supported by 0 android devices.Please help me to successfully launch my first app. I have uploaded 12 version but is not working anyone. I am basically using location sms and contact read permission in my app.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="deepesh.travel.abhay.applayout" android:versionCode="5" xmlns:tools="http://schemas.android.com/tools">
<!-- To auto-complete the email text field in the login form with the user's emails -->
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="23" />
<uses-feature android:name="android.hardware.sensor.compass"
android:required="false" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.READ_PROFILE" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.SEND_SMS" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="com.android.alarm.permission.SET_ALARM"/>
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.VIBRATE" />
<application
android:name="deepesh.travel.abhay.applayout.saved_data_elements"
android:allowBackup="true"
tools:replace="icon, label"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:roundIcon="#mipmap/ic_launcher"
android:supportsRtl="true"
android:theme="#style/AppTheme">
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="AIzaSyDNVWdbxYpqG08j-wytsWb5cwrBM0mN1ro" />
<activity android:name="deepesh.travel.abhay.applayout.WelcomeActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="deepesh.travel.abhay.applayout.MainActivity"
android:label="#string/app_name"
android:theme="#style/AppTheme.NoActionBar" />
<activity
android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:theme="#android:style/Theme.Translucent" />
<activity
android:name="deepesh.travel.abhay.applayout.SettingTest"
android:label="#string/title_activity_settings"
android:parentActivityName="deepesh.travel.abhay.applayout.MainActivity">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="deepesh.travel.abhay.applayout.MainActivity" />
</activity>
<activity
android:name="deepesh.travel.abhay.applayout.Tutorial"
android:label="#string/tutorial"
android:parentActivityName="deepesh.travel.abhay.applayout.SettingTest">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="deepesh.travel.abhay.applayout.MainActivity" />
</activity>
<activity
android:name="deepesh.travel.abhay.applayout.privacyPolicy"
android:label="#string/privacy"
android:parentActivityName="deepesh.travel.abhay.applayout.SettingTest">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="deepesh.travel.abhay.applayout.MainActivity" />
</activity>
<receiver android:name="deepesh.travel.abhay.applayout.AlarmReceiver" />
</application>
</manifest>
and My build.gradle file is like this:
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.3"
defaultConfig {
applicationId "deepesh.travel.abhay.applayout"
minSdkVersion 14
targetSdkVersion 23
versionCode 12
versionName "1.0"
multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dexOptions {
javaMaxHeapSize "2048M"
}
}
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile "com.android.support:support-v4:25.3.1"
compile 'com.android.support:mediarouter-v7:25.3.1'
compile "com.android.support:support-v13:25.3.1"
compile "com.android.support:appcompat-v7:25.3.1"
compile "com.android.support:cardview-v7:25.3.1"
compile 'com.android.support:design:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.almworks.sqlite4java:sqlite4java-win32-x64:1.0.392'
compile 'com.android.support:preference-v7:25.3.1'
compile 'com.google.android.gms:play-services:10.2.1'
compile 'org.apache.directory.studio:org.apache.commons.io:2.4'
compile 'com.google.android.gms:play-services-ads:10.2.1'
compile 'com.google.android.gms:play-services:8.4.0'
testCompile 'junit:junit:4.12'
}
Please help me to successfully launch my first app. I have uploaded 12 version but is not working anyone. I am basically using location sms and contact read permission in my app.
remove <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="23" />
no use if u r defining in gradle then if u r targeting to 23 version
then keep ur compileSdkVersion 25 buildToolsVersion "25.0.3" to 26
android:roundIcon="#mipmap/ic_launcher" This is for Android O which is 26
So make your build proper you all mixup with the version
app gradle
compileSdkVersion 26
buildToolsVersion "26.0.1"
minSdkVersion 14
targetSdkVersion 26
versionCode 13
versionName "1.0"
Make build gradle file like this .
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion "26.0.1"
defaultConfig {
applicationId "deepesh.travel.abhay.applayout"
minSdkVersion 14
targetSdkVersion 26
versionCode 17
versionName "1.0"
multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dexOptions {
javaMaxHeapSize "2048M"
}
}
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile "com.android.support:support-v4:26.+"
compile 'com.android.support:mediarouter-v7:26.+'
compile "com.android.support:support-v13:26.+"
compile "com.android.support:appcompat-v7:26.+"
compile "com.android.support:cardview-v7:26.+"
compile 'com.android.support:design:26.+'
compile 'com.android.support.constraint:constraint-layout:1.+'
compile 'com.almworks.sqlite4java:sqlite4java-win32-x64:1.+'
compile 'com.android.support:preference-v7:26.+'
compile 'com.google.android.gms:play-services:10.2.1'
compile 'commons-io:commons-io:2.4'
compile 'com.google.android.gms:play-services-ads:10.2.1'
compile 'com.google.android.gms:play-services:8.4.0'
testCompile 'junit:junit:4.12'
}
And Remove from mainifest file.
I am new to Android and new to this forum as well. I have done an Android app and it is running fine in Android Lollipop and Marshmallow. However when I try to open my app from Android Kitkat, the app is not opening up. Its suddenly closing by itself. I am of the feeling the it is due to the improper minSdkVersion and targetSdkVersion. My build.gradle is as below:
apply plugin: 'com.android.application'
android {
signingConfigs {
config {
keyAlias 'XX'
keyPassword 'XXX777'
storeFile file('C:/Users/XXX/XXXXX.jks')
storePassword 'XXX777'
}
}
compileSdkVersion 23
buildToolsVersion '24.0.2'
defaultConfig {
applicationId "com.fire.firebasetest.testone"
minSdkVersion 19
targetSdkVersion 23
versionCode 4
versionName "4.1"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
}
dexOptions {
javaMaxHeapSize "4g"
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
// volley
// Glide
compile 'com.android.support:appcompat-v7:24.2.0'
compile 'com.android.support:design:24.2.0'
compile 'com.android.support:cardview-v7:24.2.0'
compile 'com.android.support:recyclerview-v7:24.2.0'
compile 'com.android.support:support-v4:23.4.0'
compile 'com.android.volley:volley:1.0.0'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.google.android.gms:play-services:9.6.0'
compile 'com.google.firebase:firebase-messaging:9.6.0'
}
apply plugin: 'com.google.gms.google-services'
My app has a splash screen on start and its not opening up in Kitkat 4.4.
My manifest.xml
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<application
android:name=".AppController"
android:allowBackup="true"
android:icon="#drawable/ic_launcher_new"
android:label="#string/app_name"
android:supportsRtl="true"
android:theme="#style/AppTheme">
<activity android:name=".SplashScreen">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Can someone help me out to solve this issue?
I'm working with Android Studio.
But when I want to run my project return error:
Error:Execution failed for task ':audiorecordlibrary:processReleaseManifest'.> Manifest merger failed with multiple errors, see logs
My app gradle and manifest :
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion '23.0.2'
defaultConfig {
applicationId "com.cleveroad.audiovisualization.example"
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.0.0"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
final SUPPORT_LIB_VERSION = '23.0.0'
compile fileTree(include: ['*.jar'], dir: 'libs')
compile "com.android.support:appcompat-v7:$SUPPORT_LIB_VERSION"
compile project(':audiorecordlibrary')
compile project(':library')
compile files('libs/junit-4.12.jar')
}
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.cleveroad.example">
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
<uses-feature
android:glEsVersion="0x00020000"
android:required="true"/>
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/av_app_name"
android:supportsRtl="true"
tools:replace="android:supportsRtl"
android:theme="#style/AppTheme">
<activity
android:name=".MainActivity"
android:screenOrientation="portrait">
<intent-filter>
<category android:name="android.intent.category.LAUNCHER"/>
<action android:name="android.intent.action.MAIN"/>
</intent-filter>
</activity>
</application>
</manifest>
my audiorecordlibrary gradle and manifest is :
apply plugin: 'com.android.library'
android {
compileSdkVersion 22
buildToolsVersion "19.1.0"
defaultConfig {
minSdkVersion 11
targetSdkVersion 22
versionCode 2
versionName "1.0.1"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
//testCompile 'org.robolectric:robolectric:2.4'
testCompile 'org.mockito:mockito-all:1.8.4'
}
apply from: '../maven_push.gradle'
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="republicofgavin.pauseresumeaudiorecorder">
<application
tools:replace="android:icon" android:allowBackup="true" android:label="#string/app_name">
</application>
</manifest>
and my another library gradle and manifest is :
apply plugin: 'com.android.library'
android {
compileSdkVersion 23
buildToolsVersion '23.0.3'
defaultConfig {
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.0.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
resourcePrefix "av_"
}
dependencies {
final SUPPORT_LIB_VERSION = '23.0.0'
compile fileTree(include: ['*.jar'], dir: 'libs')
//noinspection GradleDependency
compile "com.android.support:appcompat-v7:$SUPPORT_LIB_VERSION"
}
apply from: './gradle-mvn-push.gradle'
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" package="com.cleveroad.audiovisualization"/>
My project was implemented before I add audiorecordlibrary to my project.
Can anybody help me ??
I'm migrating my project from eclipse to Android Studio and ran into an error :
Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed with multiple errors, see logs
I've searched through this problem and seen that I need to use
xmlns:tools="http://schemas.android.com/tools"
in the manifest tag
and
tools:node="replace"
tools:replace="icon"
in the application tag. but that didn't help me. I presume that there is something to do with Gradle/Manifest working failure, but not sure where
Here's manifest (it's the only Manifest in App module)
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.vladdrummer.headsup"
xmlns:tools="http://schemas.android.com/tools"
android:versionCode="7"
android:versionName="1.01" >
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="25" />
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme"
tools:node="replace"
tools:replace="icon">
<activity
android:name=".MainActivity"
android:configChanges="orientation|screenSize"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<uses-permission android:name="android.permission.CAMERA"/>
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera" android:required="true" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="com.android.vending.BILLING" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
</manifest>
and here's Gradle :
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.0"
defaultConfig {
applicationId "com.vladdrummer.headsup"
minSdkVersion 11
targetSdkVersion 25
versionCode 7
versionName "1.01"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.1.0'
compile "com.android.support:support-core-utils:25.1.0"
testCompile 'junit:junit:4.12'
compile project(':ldialogs')
}
just in case : here's the library's (module) manifest :
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="uk.me.lewisdeane.ldialogs">
<application android:allowBackup="true" android:label="#string/lib_name"
android:supportsRtl="true">
</application>
</manifest>
and here's the module's Gradle :
apply plugin: 'com.android.library'
android {
compileSdkVersion 25
buildToolsVersion "25.0.0"
defaultConfig {
minSdkVersion 11
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.0.0'
testCompile 'junit:junit:4.12'
}
I am publishing my application to play store but i am getting device supporting zero. I have try with many changes and i am posting the code for gradle and manifest file. Please go through the code..
Gradle File:
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
//noinspection GradleDynamicVersion
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
android {
signingConfigs {
config {
keyAlias 'XXXXXX'
keyPassword 'XXXXXX'
storeFile file('E:/Project/Client Resources/Keys/XXXXX')
storePassword 'XXXXXX'
}
}
compileSdkVersion 24
buildToolsVersion "23.0.3"
defaultConfig {
multiDexEnabled true
applicationId "com.inteXXXXXXX"
minSdkVersion 16
targetSdkVersion 24
versionCode 3
versionName "1.02"
}
buildTypes {
debug {
buildConfigField "boolean", "DEBUGGABLE", "true"
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
buildConfigField "boolean", "DEBUGGABLE", "false"
signingConfig signingConfigs.config
}
}
productFlavors {
}
}
repositories {
maven { url "https://jitpack.io" }
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.2.0'
compile 'com.android.support:design:24.2.0'
compile 'com.github.PhilJay:MPAndroidChart:v2.1.6'
compile 'com.github.bmarrdev:android-DecoView-charting:v1.1'
compile 'com.android.support:recyclerview-v7:24.2.0'
compile 'com.pkmmte.view:circularimageview:1.1'
compile 'org.apache.commons:commons-lang3:3.4'
compile 'com.android.support:percent:24.2.0'
compile 'com.android.support:cardview-v7:24.2.0'
compile 'com.squareup.okhttp3:logging-interceptor:3.0.1'
compile 'org.apache.directory.studio:org.apache.commons.codec:1.8'
compile 'joda-time:joda-time:2.9.4'
// Retrofit & OkHttp
compile 'com.squareup.retrofit2:retrofit:2.1.0'
compile 'com.squareup.retrofit2:converter-gson:2.1.0'
compile 'com.google.code.gson:gson:2.6.2'
compile 'com.squareup.okhttp3:logging-interceptor:3.3.1'
compile('com.crashlytics.sdk.android:crashlytics:2.5.5#aar') {
transitive = true;
}
compile files('libs/DraggableGridView.jar')
}
and here is the manifest file for the code..
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.inteXXXXXX">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<application
android:name=".utils.InteXXXXXXXXXXXXXX"
android:allowBackup="true"
android:hardwareAccelerated="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:theme="#style/Theme.AppCompat">
<activity
android:name=".common.SplashActivity"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Light.NoTitleBar.Fullscreen">
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".common.LoginActivity"
android:screenOrientation="portrait"
android:theme="#style/Theme.AppCompat.Light.NoActionBar.FullScreen" />
<activity
android:name=".caregiver.controller.viewcontroller.activity.CaregiverTaskBoardActivity"
android:screenOrientation="portrait"
>
</activity>
<activity
android:name=".caregiver.controller.viewcontroller.activity.PatientListActivity"
android:screenOrientation="portrait"
>
</activity>
<activity
android:name=".caregiver.controller.viewcontroller.activity.MenuActivity"
android:screenOrientation="portrait"
>
</activity>
<activity
android:name=".caregiver.controller.viewcontroller.activity.MedicationEditActivity"
android:screenOrientation="portrait"
>
</activity>
<activity
android:name=".caregiver.controller.viewcontroller.fragments.ObservationFragment"
android:screenOrientation="portrait"
>
</activity>
<activity
android:name=".caregiver.controller.viewcontroller.fragments.VillageFragment"
android:screenOrientation="portrait"
>
</activity>
<activity
android:name=".caregiver.controller.viewcontroller.activity.InfoActivity"
android:screenOrientation="portrait"
>
</activity>
<meta-data
android:name="io.fabric.ApiKey"
android:value="e84ec6e6521086a73a9e544c96270b1d78962e10" />
</application>
</manifest>
Please help, as I am trying from hours regarding this issue.