Comments (9)
Thanks for very detailed report. It looks very weird and seems like an issue/limitation in AGP. Anyway I'll keep an eye on it.
from paper.
Hey, I'm having a similar issue starting from using AGP 7.0.2. Looks like R8 / ProGuard is removing some classes and causing errors.
from paper.
I'm also experiencing this issue as described.
from paper.
This still happens with AGP 7.0.3
. Which contains following changes.
I also tried the sugessetd fix from @TJHello (thanks for that!) to make the class public but it doesn't work sadly.
from paper.
Is this issue fixed now?
from paper.
class PaperTable --------> public class PaperTable
from paper.
@pilgr can you prioritize this fix please? I can confirm it's still happening on 7.0.3 AGP version, 7.0.0 is OK though
from paper.
It looks like this is an R8 issue. If the -allowaccessmodification flag is present in proguard rules. It changes access of the default constructor to public, but keeps the class PaperTable internal:
# direct methods
.method public constructor <init>()V
.registers 1
.line 6
.local p0, "this":Lio/paperdb/PaperTable;, "Lio/paperdb/PaperTable<TT;>;"
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 7
return-void
.end method
And it doesn't allow to create instance into the Kryo library.
It helped me to make the default constructor private, this does not allow R8 to change access.
Making class public helped me also.
from paper.
Hey folks, sorry for keeping you waiting for the fix for such a long time. The good news – we have the new fixed version to try out. Please refer to this task for instructions and give your feedback #196
from paper.
Related Issues (20)
- Migrate Immediately!! HOT 1
- minifyEnabled is true and shrinkResources is true getting below error HOT 4
- minifyEnabled true is crashing the application when read operation is done after write HOT 3
- Read operation crashes the app when app uses gradle plugin 7.0.2 HOT 2
- Whenever app is updated or uninstalled the paper db data gets reset or deleted HOT 1
- Paper Db deserialization Issue On App Update HOT 4
- Compatibility test for 2.7.2 HOT 2
- Issue in android 12 HOT 1
- As a User I want to join back a Group PTT call or an Emergency Call so that I can get back with my callees
- Paper DB Encryption HOT 1
- mContext is useless when location is explicit in getBook() HOT 4
- Couldn't read/deserialize file /data/~/files/io.paperdb/~.pt for table ~ HOT 3
- How is the serialization working for everything ? HOT 1
- Serialization is broken for Java 8 Date Time classes with api desugaring HOT 1
- [ASK] How can view the contents of a PT file HOT 1
- Java 17 causes "InaccessibleObjectException" for ArraysAsListSerializer HOT 5
- Convert pt file to csv or display database content HOT 1
- Gradle 8 + R8 optimization result to an empty DB (or unreadable)
- Couldn't read/deserialize file /data/user/0/"
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 paper.