parse.com - I encounter some issues using parse on some of my Android devices -
i encounter issues parse regarding device i'm running project on.
first tried make parse work on project had issues regarding device using, decided take parsestarterproject (here).
i opened build.gradle android studio , after checking working on 2 android devices, modified androidmanifest.xml , build.gradle files fit first project.
androidmanifest.xml :
<?xml version="1.0" encoding="utf-8"?> <!-- ~ copyright (c) 2015-present, parse, llc. ~ rights reserved. ~ ~ source code licensed under bsd-style license found in ~ license file in root directory of source tree. additional grant ~ of patent rights can found in patents file in same directory. --> <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:largeheap="true" package="com.parse.starter"> <uses-permission android:name="android.permission.internet" /> <uses-permission android:name="android.permission.access_network_state" /> <application android:name=".starterapplication" android:allowbackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:theme="@style/apptheme" tools:replace="android:theme"> > <meta-data android:name="com.parse.application_id" android:value="@string/parse_app_id" /> <meta-data android:name="com.parse.client_key" android:value="@string/parse_client_key" /> <activity android:name=".mainactivity" 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>
build.gradle (project)
// top-level build file can add configuration options common sub-projects/modules. buildscript { repositories { mavencentral() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:1.3.1' } } allprojects { repositories { mavencentral() jcenter() } } ext { compilesdkversion = 23 buildtoolsversion = "23.0.0" minsdkversion = 16 targetsdkversion = 23 }
build.gradle (module)
apply plugin: 'com.android.application' apply plugin: 'com.parse' buildscript { repositories { jcenter() mavencentral() maven { url 'https://maven.parse.com/repo' } } dependencies { classpath 'com.parse.tools:gradle:1.+' } } android { compilesdkversion 23 buildtoolsversion "23.0.0" defaultconfig { applicationid "com.parse.starter" minsdkversion 16 targetsdkversion 23 versioncode 1 versionname "1.0" multidexenabled true } buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } dexoptions { javamaxheapsize "4g" } } dependencies { compile 'com.parse.bolts:bolts-android:1.2.1' compile 'com.parse:parse-android:1.10.2' compile 'com.koushikdutta.ion:ion:2.+' compile 'com.android.support:appcompat-v7:23.0.0' compile 'com.google.android.gms:play-services:7.8.0' compile 'com.google.android.gms:play-services-fitness:7.8.0' compile 'com.google.android.gms:play-services-wearable:7.8.0' compile 'com.facebook.android:facebook-android-sdk:4.0.0' compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.3' compile 'com.android.support:design:23.0.0' compile 'com.soundcloud.android:android-crop:1.0.0@aar' compile 'me.grantland:autofittextview:0.2.+' compile 'com.github.boxme:squarecamera:1.0.3' } /* uncomment if enable proguard , want automatically upload symbols on build. parse { applicationid "your_application_id" masterkey "your_master_key" // make symbol upload automatic. otherwise, use e.g. ../gradlew parseuploadsymbolsdebug; uploadsymbols true } */
if run app on oneplus one, android 5.1.1 (cyanogen os 12.1-yog4pas1n0), works charm. on lg bello, android 4.4.2, doesn't run , have following
stacktrace :
10-22 15:11:06.951 26337-26337/? i/dalvikvm: not find method android.view.window$callback.onwindowstartingactionmode, referenced method android.support.v7.internal.view.windowcallbackwrapper.onwindowstartingactionmode 10-22 15:11:06.951 26337-26337/? w/dalvikvm: vfy: unable resolve interface method 17145: landroid/view/window$callback;.onwindowstartingactionmode (landroid/view/actionmode$callback;i)landroid/view/actionmode; 10-22 15:11:06.951 26337-26337/? d/dalvikvm: vfy: replacing opcode 0x72 @ 0x0002 10-22 15:11:06.965 26337-26337/? d/androidruntime: shutting down vm 10-22 15:11:06.965 26337-26337/? w/dalvikvm: threadid=1: thread exiting uncaught exception (group=0x41e09da0) 10-22 15:11:06.967 26337-26337/? e/androidruntime: fatal exception: main 10-22 15:11:06.967 26337-26337/? e/androidruntime: process: com.parse.starter, pid: 26337 10-22 15:11:06.967 26337-26337/? e/androidruntime: java.lang.noclassdeffounderror: android.support.v7.appcompat.r$layout 10-22 15:11:06.967 26337-26337/? e/androidruntime: @ android.support.v7.app.appcompatdelegateimplv7.ensuresubdecor(appcompatdelegateimplv7.java:307) 10-22 15:11:06.967 26337-26337/? e/androidruntime: @ android.support.v7.app.appcompatdelegateimplv7.setcontentview(appcompatdelegateimplv7.java:254) 10-22 15:11:06.967 26337-26337/? e/androidruntime: @ android.support.v7.app.appcompatactivity.setcontentview(appcompatactivity.java:109) 10-22 15:11:06.967 26337-26337/? e/androidruntime: @ com.parse.starter.mainactivity.oncreate(mainactivity.java:24) 10-22 15:11:06.967 26337-26337/? e/androidruntime: @ android.app.activity.performcreate(activity.java:5275) 10-22 15:11:06.967 26337-26337/? e/androidruntime: @ android.app.instrumentation.callactivityoncreate(instrumentation.java:1087) 10-22 15:11:06.967 26337-26337/? e/androidruntime: @ android.app.activitythread.performlaunchactivity(activitythread.java:2169) 10-22 15:11:06.967 26337-26337/? e/androidruntime: @ android.app.activitythread.handlelaunchactivity(activitythread.java:2255) 10-22 15:11:06.967 26337-26337/? e/androidruntime: @ android.app.activitythread.access$800(activitythread.java:142) 10-22 15:11:06.967 26337-26337/? e/androidruntime: @ android.app.activitythread$h.handlemessage(activitythread.java:1203) 10-22 15:11:06.967 26337-26337/? e/androidruntime: @ android.os.handler.dispatchmessage(handler.java:102) 10-22 15:11:06.967 26337-26337/? e/androidruntime: @ android.os.looper.loop(looper.java:136) 10-22 15:11:06.967 26337-26337/? e/androidruntime: @ android.app.activitythread.main(activitythread.java:5118) 10-22 15:11:06.967 26337-26337/? e/androidruntime: @ java.lang.reflect.method.invokenative(native method) 10-22 15:11:06.967 26337-26337/? e/androidruntime: @ java.lang.reflect.method.invoke(method.java:515) 10-22 15:11:06.967 26337-26337/? e/androidruntime: @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:789) 10-22 15:11:06.967 26337-26337/? e/androidruntime: @ com.android.internal.os.zygoteinit.main(zygoteinit.java:605) 10-22 15:11:06.967 26337-26337/? e/androidruntime: @ dalvik.system.nativestart.main(native method) 10-22 15:12:45.993 26337-26337/com.parse.starter i/process: sending signal. pid: 26337 sig: 9
i noticed lines : compile 'com.android.support:design:23.0.0' compile 'com.parse:parse-android:1.10.2'
seems @ origin of issue.
can me ?
thanks :)
here link download directly project : http://we.tl/zwy1c9etx0
jeff
Comments
Post a Comment