Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App wont build on non 4.4 devices after updating google play services

I just updated my google play services lib to:

compile 'com.google.android.gms:play-services:4.1.32'

I have the following within my build.gradle file (compile SDK version will be updated next; I'm working on a huge update with an app)

compileSdkVersion "Google Inc.:Google APIs:17"
buildToolsVersion "19.0.1"

defaultConfig {
    minSdkVersion 14
    targetSdkVersion 19
}

Everytime I build the app on any non-nexus device, I see the app install, but it wont open (no ANR; it just closes).

Here's some of my output that I think might be causing the issue:

02-14 19:46:19.608    2286-2816/? W/ActivityManager﹕ Permission denied: checkComponentPermission() owningUid=10134


I/ActivityManager﹕ Process com.xxx.xxx (pid 23606) (adj 0) has died.
E/Launcher﹕ Error finding setting, default accessibility to not found: accessibility_enabled
like image 413
Whitney Imura Avatar asked Feb 14 '14 19:02

Whitney Imura


Video Answer


1 Answers

I would first try downgrading Google Play Services version in build.gradle and see if the app still works with the old version.

Then, make sure you update your Android SDK for newest versions of Google Play Services and Google Repository, and try the upgrade again.

I'd also suggest using the most recent version of the Android Gradle plugin in your build.gradle (e.g., com.android.tools.build:gradle:1.0.0)

Finally, I'd also suggest trying to build and install on the command line with gradlew clean installDebug to eliminate potential issues with Android Studio (note that you'll need to launch your main Activity manually, or via ADB command adb shell am start -n com.xxxx.xxxx/.YourMainActivity, as installDebug won't automatically start the activity).

like image 58
Sean Barbeau Avatar answered Nov 15 '22 20:11

Sean Barbeau