You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by GitBox <gi...@apache.org> on 2019/04/30 06:30:26 UTC

[GitHub] [incubator-weex] vikasrathore opened a new issue #2386: [Android]Unexpected behavior with android app bundle and dynamic feature from varsion gradle 3.3.0 where weex version is 0.20.0.2@aar

vikasrathore opened a new issue #2386: [Android]Unexpected behavior with android app bundle and dynamic feature from varsion gradle 3.3.0 where weex version is 0.20.0.2@aar
URL: https://github.com/apache/incubator-weex/issues/2386
 
 
   
   ## Describe the bug
   1- Enabled Android app bundle with gradle version 3.3 and weex pages stopped working. We could see that the .so files were not getting loaded.
   2- Contacted google- they have asked to load SO file by System.load or System.loadlobrary, since they have made changes in compression of .so files. For time being, they have asked to add a temporary fix by adding a flag in gradle **android.bundle.enableUncompressedNativeLibs=false** this thread you can access here [**https://issuetracker.google.com/issues/125164369**](url).
   The above URL contains complete details.
   3-The weex pages started loaded on gradle 3.3.0 after that 
   4-We have enabled dynamic delivery of android features. You can find the details in below links. 
   [https://developer.android.com/studio/projects/dynamic-delivery](url)
   [https://developer.android.com/guide/app-bundle/playcore](url)
   
   5-In our app, we are trying to add the weex library as a dynamic feature modules and delivery it to users as dynamic download module. In dynamic delivery guideline the so files needed to  by **SplitInstallHelper.loadLibrary(Context context, String libName)**. You can find that from below link. 
   
   [https://developer.android.com/guide/app-bundle/playcore#load_native_libs](url)
   
   6-When we install a fresh version of app, when we try to load the weex page it gives following error.
   **onExceptionerrCode -1001 msg degradeToH5|createInstance fail|wx_create_instance_error isJSFrameworkInit==false reInitCount == 1**
   7- we checked **WXEnvironment.sApplication is not null** and on render it gives above error first time .
   8- If we push the update to the existing install app, then weex pages start working and load .js file from assets folder 
   Here is repo [https://github.com/prankulg/DynamicDeliveryDemo/](url) checkout branch **weexsdk**
   
   ## To Reproduce
   <!-- Steps to reproduce the behavior.  Include a MCVE using http://dotwe.org/vue , crash stacktrace or  share your app project. Please follow the guidelines for providing a MCVE: https://stackoverflow.com/help/mcve -->
   
   ## Environment
   <!-- 
   * Device: [e.g. iPhone6]
   * OS: [e.g. iOS8.1]
   * Version [e.g. 22]
   * Build from source [e.g. yes/no] -->
   
   ## Expected behavior
   <!-- A clear and concise description of what you expected to happen. -->
   
   ## Screenshots
   <!-- If applicable, add screenshots to help explain your problem. -->
   
   ## Additional context
   <!-- Add any other context about the problem here.-->
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services