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?
Related
My Android mobile app is successfully installing only on android version 6.0.1 but I want to install it on android version 4.4.4. What changes I have to do?
Here in my Manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.pervaizahmed.ilmileaveapplication">
<uses-sdk android:maxSdkVersion="27" />
<uses-permission android:name="android.permission.SEND_SMS" />
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:roundIcon="#mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="#style/Theme.AppCompat">
<activity android:name=".welcomeScreen">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".MainActivity" />
</application>
</manifest>
Here is Gradle Code:
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
defaultConfig {
applicationId "com.example.pervaizahmed.ilmileaveapplication"
minSdkVersion 14
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
}
buildToolsVersion '26.0.2'
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.android.support:appcompat-v7:26.0.2'
implementation 'com.android.support:design:26.0.2'
implementation 'com.android.support:support-v4:26.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:0.5'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
}
Problem solved just by removing this line.
androidTestImplementation 'com.android.support.
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'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 am working on an android app and it started opening late.
04-16 18:07:09.834 2683-2683/pp.com.dersProgramim W/ResourceType: Found multiple library tables, ignoring...
04-16 18:07:23.159 2683-2683/pp.com.dersProgramim D/NotificationMan...: Step 1
Here is the logcat in first run. It waits so long to open in "Found Multiple Library tables, ignoring" part. Its like 12 seconds.
After the first run, app makes big size cache and data, like 30 MB.
App Info
Its so big i think.
And the second run for example, app opens late again in "Found Multiple library tables, ignoring..." part, it waits too, but not as first run, it is 15 ms.
Here is the build.gradle file
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion '23.0.2'
defaultConfig {
applicationId "pp.com.dersProgramim"
minSdkVersion 14
targetSdkVersion 23
versionCode 10
versionName "2.0.1"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.android.support:design:23.1.0'
compile 'com.android.support:cardview-v7:23.1.0'
compile project(':BetterPickers')
compile project(':MaterialDesign')
compile project(':UpdateChecker')
compile 'com.google.android.gms:play-services:6.+'
compile 'com.balysv.materialmenu:material-menu-toolbar:1.5.1'
compile 'de.cketti.library.changelog:ckchangelog:1.2.2'
compile('com.afollestad.material-dialogs:core:0.8.5.1#aar') {
transitive = true
}
compile 'com.koushikdutta.ion:ion:2.+'
compile 'com.prolificinteractive:material-calendarview:1.1.0'
}
manifest.xml file
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="pp.com.dersProgramim">
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<application android:allowBackup="true" android:label="#string/app_name"
android:name=".MySchoolSchedule"
android:icon="#mipmap/ic_launcher" android:supportsRtl="true"
android:theme="#style/DersProgramimTheme">
<meta-data android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version"/>
<activity
android:name=".MainActivity"
android:label="#string/app_name"
android:exported="true"
android:theme="#style/DersProgramimTheme"
android:configChanges="orientation|screenSize|touchscreen"
android:windowSoftInputMode="stateUnchanged|stateHidden|adjustPan" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".SetSchuleTimeConfigurationActivity"
android:label="#string/app_name"
android:theme="#style/DersProgramimTheme"
android:configChanges="orientation|screenSize|touchscreen"
android:windowSoftInputMode="stateUnchanged|stateHidden|adjustPan"/>
<activity android:name="com.google.android.gms.ads.AdActivity"
android:theme="#android:style/Theme.Translucent"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
<receiver android:name=".StartReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
<service android:name=".NotificationService" />
</application>
</manifest>
And other module's build.gradle files
buildscript {
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0-beta1'
}
}
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
}
apply plugin: 'android-library'
android {
compileSdkVersion 23
buildToolsVersion '23.0.2'
defaultConfig {
minSdkVersion 10
targetSdkVersion 23
versionName "1"
versionCode 1
}
buildTypes {
release {
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:support-v4:23.0.1'
compile('com.afollestad.material-dialogs:core:0.8.5.1#aar') {
transitive = true
}
}
And other one
android {
compileSdkVersion 23
buildToolsVersion '23.0.2'
defaultConfig {
minSdkVersion 11
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile 'com.android.support:support-v4:23.+'
compile 'com.nineoldandroids:library:2.4.0'
compile fileTree(dir: 'libs', include: '*.jar')
}
And this is the last
apply plugin: 'com.android.library'
android {
compileSdkVersion 23
buildToolsVersion '23.0.2'
defaultConfig {
minSdkVersion 11
targetSdkVersion 23
versionCode 10
versionName "1.5.5"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
sourceSets {
main {
assets {
srcDir 'assets'
}
}
}
lintOptions {
abortOnError false
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:support-v4:23.0.1'
compile 'org.jraf:android-switch-backport:1.4.0#aar'
compile 'com.nineoldandroids:library:2.4.0'
}
Thanks for your help guys.
yeah, I got this problem too
But the problem solved when I build a released apk.
Maybe you can try to build a released apk.
I guess there might be some problem in the debug apk.
So far
I am developing a watch face app for android wear.
I have created 2 modules:
Wear - The Watch face that works fine on development
Mobile - An empty module with no activity as suggested by the comments
I have added the wear module to the mobile as a dependancy as described in packaging wear apps for the playstore
The app is in alpha in the playstore. I have uploaded the mobile-release.apk.
The app installs fine on my mobile but the wear module, the WatchFace will not install on my wear device. This is my problem.
What am I doing wrong?
Here are my manifests and Gradle configs
Mobile Manifest
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.dimitrioskanellopoulos.athletica">
<uses-permission android:name="android.permission.BODY_SENSORS"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<application android:allowBackup="true" android:icon="#mipmap/ic_launcher"
android:label="#string/app_name" android:supportsRtl="true"
android:theme="#style/AppTheme">
</application>
Wear Manifest
<service
android:name="com.dimitrioskanellopoulos.athletica.WatchFaceService"
android:label="#string/app_name"
android:permission="android.permission.BIND_WALLPAPER">
<meta-data
android:name="android.service.wallpaper"
android:resource="#xml/watch_face" />
<meta-data
android:name="com.google.android.wearable.watchface.preview"
android:resource="#drawable/preview_rectangular" />
<meta-data
android:name="com.google.android.wearable.watchface.preview_circular"
android:resource="#drawable/preview_circular" />
<intent-filter>
<action android:name="android.service.wallpaper.WallpaperService" />
<category android:name="com.google.android.wearable.watchface.category.WATCH_FACE" />
</intent-filter>
</service>
Build.gradle for the Project
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.0.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Build.gradle for the mobile module
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.dimitrioskanellopoulos.athletica"
minSdkVersion 22
targetSdkVersion 23
versionCode 4
versionName "1.0.2"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
zipAlignEnabled true
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.3.0'
wearApp project(':wear')
}
Build.gradle for the wear module
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.dimitrioskanellopoulos.athletica"
minSdkVersion 22
targetSdkVersion 23
versionCode 4
versionName "1.0.2"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
zipAlignEnabled true
}
}
productFlavors {
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:support-annotations:23.3.0'
compile 'com.google.android.support:wearable:1.4.0'
compile 'com.android.support:support-v4:23.3.0'
compile 'com.google.android.gms:play-services:8.4.0'
compile 'com.google.android.gms:play-services-location:8.4.0'
compile 'com.google.android.gms:play-services-wearable:8.4.0'
compile 'com.luckycatlabs:SunriseSunsetCalculator:1.2'
compile 'org.apache.commons:commons-lang3:3.4'
}
Any help would be much appreciated!
Well after some time it installed. Took several uninstalls/installs.
The updated manifests are result of the comments and thanks for that.