Comments (20)
@SOGAPPS we ended up adding this to our proguard rules
-keepclassmembers public class * extends com.parse.** {
public <init>(...);
}
from parse-sdk-android.
I fixed it by adding
-keep @com.parse.ParseClassName class com.parse.*
to proguard-rules.pro, then it no longer crashes.
I´m not sure which file in this project to add it to, maybe https://github.com/parse-community/Parse-SDK-Android/blob/master/parse/release-proguard.pro
from parse-sdk-android.
No clue, @mtrezza. I will check upcoming days. Maybe is related with latest version of AGP and R8.
from parse-sdk-android.
No, for clarity, we added the two lines of code below to our apps "proguard-rules.pro" file.
Doing this resolved our issue.
-keep @com.parse.ParseClassName class com.parse.*
-keepclassmembers public class * extends com.parse.** { public <init>(...); }
from parse-sdk-android.
@azlekov do you think a PR with these lines could fix this issue?
from parse-sdk-android.
I will compare and adjust mine in few days.
from parse-sdk-android.
🎉 This change has been released in version 4.2.1
from parse-sdk-android.
Thanks for opening this issue!
- 🚀 You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.
from parse-sdk-android.
In other words, gradle 8 is not supported OOTB by the Parse SDK, is that correct?
from parse-sdk-android.
In other words, gradle 8 is not supported OOTB by the Parse SDK, is that correct?
Yes (if you are using minifyEnabled).
from parse-sdk-android.
Pre gradle 8 minify would work, right?
from parse-sdk-android.
Yes, everything worked until I updated to Gradle 8
from parse-sdk-android.
Thanks for clarifying, do you have an idea how to fix it? Would you want to open a PR?
from parse-sdk-android.
@azlekov, any idea how we could fix this?
from parse-sdk-android.
Experiencing this as well. Proposed fix did not resolve it for us.
Any ideas?
from parse-sdk-android.
Same issue after upgrading Gradle to version 8.
The proposed fix worked for me.
Like @hej2010 I do not have any custom subclasses registered and minifyEnabled true
for release build.
from parse-sdk-android.
Currently experiencing this. Proposed fix did not resolve it for us.
We've custom subclasses registered.
@tSquaredd Did you find a fix?
from parse-sdk-android.
Thanks @tSquaredd
Using this worked for us - both "keep" & "keepclassmembers".
We added the two lines of code below to our apps "proguard-rules.pro" file.
-keep @com.parse.ParseClassName class com.parse.*
-keepclassmembers public class * extends com.parse.** { public <init>(...); }
from parse-sdk-android.
Gradle 8.0 switches to using R8 in "full mode" by default: https://r8.googlesource.com/r8/+/refs/heads/master/compatibility-faq.md#r8-full-mode
"R8 performs more aggressive optimizations, meaning additional ProGuard configuration rules may be required."
It can be disabled by adding android.enableR8.fullMode=false
to gradle.properties
from parse-sdk-android.
Does this comment already provide the solution?
@SOGAPPS In your comment did you mean one has to replace ParseClassName
with the custom classes a developer is using in their app?
from parse-sdk-android.
Related Issues (20)
- Could not find com.github.parse-community.Parse-SDK-Android:parse:3.0.0. HOT 3
- logInWithReadPermissionsInBackground sends out an verification email HOT 2
- Publish to Maven Central repository HOT 8
- Migrate ParseLiveQuery over here HOT 3
- Migrate and resurrect ParseUI HOT 3
- ParseFile uploads multiple times HOT 2
- 📣 Contributors wanted! HOT 1
- i/o failure HOT 2
- Cloud code progressCallback HOT 1
- Facebook Login not working when Facebook app is not installed HOT 2
- Could not find com.github.parse-community.Parse-SDK-Android:bolts-tasks:4.2.0 HOT 11
- Preventing Session Copy On Rooted Devices By Encrypting Current Session Files HOT 1
- Not able to Log/Print URL/cURl in android studio HOT 2
- README Getting Started guide is out of date HOT 2
- SafeParseDelegate's name param being ignored on `setValue` function HOT 1
- Add option to pass additional parameters to backend when saving/uploading file HOT 1
- Dashboard HOT 1
- Even if “linkWithInBackground” fails(code208), the data will be cached locally, causing problems with this “isLinked” HOT 1
- Compose Preview crashes because of Parse init HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from parse-sdk-android.