Comments (10)
I'm able to reproduce only on an obfuscated APK
Checking it out
from richpath.
Correction: it's fine in an APK and doesn't work when distributed from an android bundle via the play store (aab)..
I find it very strange and worrying.. probably has nothing to do with the library
from richpath.
Hi @Shailevy thank you for using RichPath, I will investigate in that crash.
I am curious to download your app, could you send the play store link?
from richpath.
Hi,
Thanks, I will email you shortly
from richpath.
I emailed you.
But we can try another approach.. can you obfuscate and publish the sample app as an aab (bundle) in the play store ?
I will opt-in to the beta and then we can see if this is a generic problem or app-specific
from richpath.
Me again,
Sorry for all the messages, its a new production app and everyone here is in panic mode and I would rather annoy you with too much updates then let you waste time on this.
Turns out you can ran an Android Bundle with android studio:
The problem reproduces right away so I was able to debug it:
getAttributeStrokeLineCap in XmlParser.class calls getAttributeValue(xpp, attributeName)
The function:
private static String getAttributeValue(XmlResourceParser xpp, String attributeName) {
return xpp.getAttributeValue("http://schemas.android.com/apk/res/android", attributeName);
}
For my XML
Will return "1" when the project is compiled to an APK and "round" when the project is compiled to a bundle.
I'm guessing it has something to do with the schemas.android.com/apk/res/android name space that hard-coded in the library.. I'm still trying to figure out how to overcome this, I will keep updating you here if I make progress
----- Update:
I will leave this to you, as far as it seems right now the library can't support App Bundles without some updating.
I didn't find helpful info in stackoverflow but I did find many complaints about problems with app bundles. So I decided to switch back to APK's without looking back.
However,
I will gladly help you find out the problem and test a fix and etc... feel free to contact me anytime.
I also suggest you reproduce at your end and warn library users not to migrate to bundles before a fix is available
from richpath.
Thank you for these information, I will try to figure out this issue in the weekend and I will contact if I have update or need to ask question! Thank you again!
from richpath.
Please don't forget this issue so we can all peek on App-Bundles again at some point.
I will be happy to help
from richpath.
Any updated ? is this great library abandoned ?
from richpath.
Hi @Shailevy
Actually I was very busy in the last month and only me work on this library, I have new features to add and also some fixes, but not sure if I can find a time to do that.
I would suggest if you have some time to do this fix and open a pull request! I think it should be easier for you since you're familiar with the bug and know how to reproduce it.
from richpath.
Related Issues (20)
- PathEffect HOT 1
- Path added using addPath not visible HOT 1
- please tarek could you add the zoom to the richpath HOT 1
- [FIXED] if the vector not exist in first time but after some seconds the app will crash.
- [FIXED] the click listener on RichPath would be specific if the offset=0 in PathUtils.class because if you zoom * 14 and click in path it will handle the click of next path.
- app crash when load map svg HOT 1
- android.content.res.Resources$NotFoundException: Can't find ColorStateList from drawable HOT 2
- Load Svg from String HOT 2
- crash on load :did not set the measured dimension by calling setMeasuredDimension() HOT 1
- Unresolved reference: richPathView Kotlin HOT 1
- Would it be possible to retrieve the paths coordinates within a view? HOT 1
- Crash on Android 4.1 and 4.4 - Binary XML file line #94: Error inflating class com.richpath.RichPathView HOT 2
- Detecting which group is clicked HOT 3
- Double/Long click path listener HOT 2
- Flow animation HOT 4
- Stop animation
- Can we set vector drawable from server and then access the path attribute?
- Non-SDK usage causing RichPathView.setVectorDrawable to throw an exception when targeting API Level 31 HOT 1
- Richpath and RichpathView code
- Working with large size SVG images
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 richpath.