3.3.0 is binary-incompatible with 3.2.0
See original GitHub issue✍️ Describe the bug
I have a project that uses Chucker, which also uses a library that uses Chucker. The library is still using 3.2.0, and when I updated my app to 3.3.0 and ran it, it crashed at runtime with this error:
java.lang.NoSuchMethodError: No direct method <init>(Landroid/content/Context;Lcom/chuckerteam/chucker/api/ChuckerCollector;JLjava/util/Set;ILkotlin/jvm/internal/DefaultConstructorMarker;)V in class Lcom/chuckerteam/chucker/api/ChuckerInterceptor; or its super classes (declaration of 'com.chuckerteam.chucker.api.ChuckerInterceptor' appears in /data/app/~~GJiF7AJl427rbyfaLOyo1A==/com.myproject-GIw2-OO7zIRGQFD6KsWDQg==/base.apk)
According to @cortinico,
Seems like the ChuckerInterceptor(Context, ChuckerCollector, Set) is missing.
💣 Steps to reproduce
- Have a library with Chucker 3.2.0.
- Have an app with Chucker 3.3.0, and which uses the above library.
- Launch app.
- Observe crash.
🔧 Expected behavior
App should not crash.
📄 Additional context
Adding the missing constructor will make it easier to migrate to Chucker 3.3.0.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
spacy.strings.StringStore size changed, may indicate binary ...
StringStore size changed, may indicate binary incompatibility. Expected 80 from C header, got 64 from PyObject #310.
Read more >ABI Policy and Guidelines - GCC, the GNU Compiler Collection
These details are defined as the compiler Application Binary Interface, or ABI. ... GCC 3.2.0: libstdc++.so.5.0.0 (Incompatible with previous).
Read more >Apache Spark 3 and backward compatibility? - Stack Overflow
There are some breaking changes in Spark 3.0.0, including source incompatible change and binary incompatible changes.
Read more >Scala is a Maintenance Nightmare - MungingData
This post explains why it's so hard to maintain Scala projects (binary incombatilbilities, frequent breaking changes, SBT plugins, ...
Read more >Installation — PySpark 3.3.1 documentation - Apache Spark
cd spark-3.3.0-bin-hadoop3 export SPARK_HOME=`pwd` export PYTHONPATH=$(ZIPS=("$SPARK_HOME"/python/lib/*.zip); IFS=:; echo "${ZIPS[*]}"):$PYTHONPATH ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Looks like we can close this one thanks to #509
Btw, I haven’t formalized it yet, but it would be possible to use my plugin to get a snapshot of your ABI at any given moment, and you could use that to compare across versions. You’d run
./gradlew :lib:abiAnalysisDebug
and then look at the output atbuild/reports/dependency-analysis/debug/intermediates/abi-dump.txt
. I plan to make this easier in the future. If you do try this, let me know how it goes, as having a real use-case to discuss would make it easier to build out the feature fully.