-
-
Notifications
You must be signed in to change notification settings - Fork 735
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with android M compilesdkversion 23 #231
Comments
This seems related to #189. Unfortunately I thought this was only an issue with compiling the SDK with |
@grantland cool , Thanks |
A workaround for now would be to lower the |
Unfortunately this looks like a deeper problem than I originally thought. We're utilizing some APIs that were completely removed from android-23 that aren't even in the Apache Http Legacy support library: SSLCertificateSocketFactory.getHttpSocketFactory(socketOperationTimeout, sslSessionCache) Originally I thought we could use the code that the above method used internally, but it looks like that was no longer exist as well: public static org.apache.http.conn.ssl.SSLSocketFactory getHttpSocketFactory(
int handshakeTimeoutMillis, SSLSessionCache cache) {
return new org.apache.http.conn.ssl.SSLSocketFactory(
new SSLCertificateSocketFactory(handshakeTimeoutMillis, cache, true));
} The above is necessary to cache SSL sessions and removing it would slow down all requests for all devices utilizing Using We'll be looking into completely removing Apache from our codebase pending some testing of whether or not |
I am looking into updating the support libraries to the latest version , which require us to update the compileSdkVersion to 23. A tentative date for the fix would help me plan accordingly. Thanks |
If everything works smoothly with HttpURLConnection, end of next week. By the way, I'm trying to reproduce this issue and have tried both running a debug app with |
Sounds good . Did you enable
I am using the legacy apache on my project , So had to include this. |
Yes I did enable that. Are you pulling in the SDK from source or are you using the compiled |
I haven't tried the parseStarterProject . I am including the following dependency in gradle for parse
|
Could you attempt to reproduce this issue with the blank ParseStarterProject and post your repro steps here? |
Thank you for your feedback. We prioritize issues that have clear and concise repro steps. Please see our Bug Reporting Guidelines about what information should be added to this issue.
|
i am using compile 'com.parse:parse-android:1.10.3' |
Hello Parse team! I've reproduced the issue with the ParseStarterProject, it only happens with proguard minifyEnabled setting (which is off by default in the starter project).
|
Thanks for the concise repro steps! I've successfully reproduced this issue and have found a solution. Could you try updating |
Yes, that change resolves the issue. |
Great to hear! much happier that the solution was easier than I originally thought 😄 |
I just tried this. It works for me too. |
Is it fixed ? android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
useLibrary 'org.apache.http.legacy'
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
// ...
}
// ...
compile 'com.facebook.android:facebook-android-sdk:4.10.1'
compile 'com.parse.bolts:bolts-android:1.3.0'
compile 'com.parse:parse-android:1.13.0'
compile 'com.parse:parsefacebookutils-v4-android:1.10.4@aar' and the error below continues when generate release apk using proguard:
|
setLatestEventInfo() has also been deprecated. It would have to be something like:
|
I am getting the following gradle error after updating to latest sdk version
I am using "useLibrary" option in the gradle file to include legacy apache
android {
useLibrary 'org.apache.http.legacy'
}
The text was updated successfully, but these errors were encountered: