弄月
弄月
  • 发布:2018-02-02 23:19
  • 更新:2018-08-03 10:44
  • 阅读:5113

离线打包 打包时未添加maps模块

分类:5+ SDK

因为一个原生插件要求必须android studio,所以用android studio打包,每次打包出来都是提示那个, 按照文档去改 dcloud_properties.xml 的结果就是App打都打不开, 启动页没有loading转圈 或者 转一小会就闪退。 已经把所有的jar包放进去

<properties>  
    <features>  
        <feature name="Barcode" value="io.dcloud.feature.barcode.BarcodeFeatureImpl"/>  
        <feature name="Speech" value="io.dcloud.feature.speech.SpeechFeatureImpl">  
            <module name="iFly" value="io.dcloud.feature.speech.IflySpeechEngine"/>  
        </feature>  
        <feature name="Maps" value="io.dcloud.js.map.amap.JsMapPluginImpl"/>  
        <!--<feature name="Maps" value="io.dcloud.js.map.JsMapPluginImpl"/>-->  
        <feature name="Contacts" value="io.dcloud.feature.contacts.ContactsFeatureImpl"/>  
        <feature name="Messaging" value="io.dcloud.adapter.messaging.MessagingPluginImpl"/>  
        <feature name="Camera" value="io.dcloud.js.camera.CameraFeatureImpl"/>  
        <feature name="Console" value="io.dcloud.feature.pdr.LoggerFeatureImpl"/>  
        <feature name="Device" value="io.dcloud.feature.device.DeviceFeatureImpl"/>  
        <feature name="File" value="io.dcloud.js.file.FileFeatureImpl"/>  
        <feature name="Proximity" value="io.dcloud.feature.sensor.ProximityFeatureImpl"/>  
        <feature name="Storage" value="io.dcloud.feature.pdr.NStorageFeatureImpl"/>  
        <feature name="Cache" value="io.dcloud.feature.pdr.CoreCacheFeatureImpl"/>  
        <feature name="Invocation" value="io.dcloud.invocation.Invocation"/>  
        <feature name="Navigator" value="io.dcloud.feature.ui.navigator.NavigatorUIFeatureImpl"/>  
        <feature name="NativeUI" value="io.dcloud.feature.ui.nativeui.NativeUIFeatureImpl"/>  
        <feature name="UI" value="io.dcloud.feature.ui.UIFeatureImpl">  
            <module name="Navigator" value="io.dcloud.feature.ui.NavView"/>  
        </feature>  
        <feature name="Gallery" value="io.dcloud.js.gallery.GalleryFeatureImpl"/>  
        <feature name="Downloader" value="io.dcloud.net.DownloaderFeatureImpl"/>  
        <feature name="Uploader" value="io.dcloud.net.UploadFeature"/>  
        <feature name="Push" value="io.dcloud.feature.aps.APSFeatureImpl">  
            <module name="igexin" value="io.dcloud.feature.apsGt.GTPushService"/>  
            <!-- mkeypush -->  
        </feature>  
        <feature name="Zip" value="io.dcloud.feature.pdr.ZipFeature"/>  
        <feature name="Audio" value="io.dcloud.feature.audio.AudioFeatureImpl"/>  
        <feature name="Runtime" value="io.dcloud.feature.pdr.RuntimeFeatureImpl"/>  
        <feature name="XMLHttpRequest" value="io.dcloud.net.XMLHttpRequestFeature"/>  
        <feature name="Statistic" value="io.dcloud.feature.statistics.StatisticsFeatureImpl"/>  
        <feature name="Accelerometer" value="io.dcloud.feature.sensor.AccelerometerFeatureImpl"/>  
        <feature name="Orientation" value="io.dcloud.feature.sensor.OrientationFeatureImpl"/>  
        <feature name="NativeObj" value="io.dcloud.feature.nativeObj.FeatureImpl"/>       
        <feature name="Geolocation" value="io.dcloud.js.geolocation.GeolocationFeatureImpl"/>  
        <feature name="Payment" value="io.dcloud.feature.payment.PaymentFeatureImpl">  
            <module name="AliPay" value="io.dcloud.feature.payment.alipay.AliPay"/>  
            <module name="Payment-Weixin" value="io.dcloud.feature.payment.weixin.WeiXinPay"/>  
            <module name="Payment-Qihoo" value="io.dcloud.feature.payment.qihoopay.QihooPay"/>  
        </feature>  
        <feature name="Share" value="io.dcloud.share.ShareFeatureImpl">  
            <module name="Sina" value="io.dcloud.share.sina.SinaWeiboApiManager"/>  
            <module name="Tencent" value="io.dcloud.share.tencent.TencentWeiboApiManager"/>  
            <module name="Weixin" value="io.dcloud.share.mm.WeiXinApiManager"/>  
        </feature>  
        <feature name="OAuth" value="io.dcloud.feature.oauth.OAuthFeatureImpl">  
            <module name="OAuth-Weixin" value="io.dcloud.feature.oauth.weixin.WeiXinOAuthService"/>  
            <module name="OAuth-QQ" value="io.dcloud.feature.oauth.qq.QQOAuthService"/>  
            <module name="OAuth-Sina" value="io.dcloud.feature.oauth.sina.SinaOAuthService"/>  
            <module name="OAuth-Qihoo" value="io.dcloud.oauth.qihoo.QihooOAuthService"/>  
            <module name="OAuth-MiUi" value="io.dcloud.feature.oauth.miui.MiUiOAuthService"/>  
        </feature>  
        <feature name="Stream" value="io.dcloud.appstream.js.StreamAppFeatureImpl"/>  
        <feature name="PluginJsFunction" value="js.api.PluginJsFunction"/>  
    </features>   

    <services>  
        <service name="push" value="io.dcloud.feature.aps.APSFeatureImpl"/>  
        <service name="Statistic" value="io.dcloud.feature.statistics.StatisticsBootImpl"/>  
        <service name="Downloader" value="io.dcloud.net.DownloaderBootImpl"/>  
        <!--<service name="Maps" value="io.dcloud.js.map.MapInitImpl" />-->  
    </services>  
</properties>
2018-02-02 23:19 负责人:无 分享
已邀请:
bilibili

bilibili

我点击地图直接程序卡死 崩溃

w***@126.com

w***@126.com

同问,应用 一启动就直接崩溃,Eclipse上

报错如下:02-27 22:29:44.990: W/System.err(6457): java.lang.ClassNotFoundException: io.dcloud.streamdownload.DownloadService
02-27 22:29:44.990: W/System.err(6457): at java.lang.Class.classForName(Native Method)
02-27 22:29:44.990: W/System.err(6457): at java.lang.Class.forName(Class.java:309)
02-27 22:29:44.990: W/System.err(6457): at java.lang.Class.forName(Class.java:273)
02-27 22:29:44.990: W/System.err(6457): at io.dcloud.common.adapter.util.UEH.commitErrorLog(UEH.java:156)
02-27 22:29:44.990: W/System.err(6457): at io.dcloud.common.adapter.util.UEH.commitUncatchException(UEH.java:151)
02-27 22:29:44.990: W/System.err(6457): at io.dcloud.common.adapter.util.UEH.access$000(UEH.java:27)
02-27 22:29:44.990: W/System.err(6457): at io.dcloud.common.adapter.util.UEH$1.uncaughtException(UEH.java:47)
02-27 22:29:44.990: W/System.err(6457): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)
02-27 22:29:44.990: W/System.err(6457): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)
02-27 22:29:44.990: W/System.err(6457): Caused by: java.lang.ClassNotFoundException: Didn't find class "io.dcloud.streamdownload.DownloadService" on path: DexPathList[[zip file "/data/app/com.dcfs.teller.smartmobile-1/base.apk"],nativeLibraryDirectories=[/data/app/com.dcfs.teller.smartmobile-1/lib/arm64, /vendor/lib64, /system/lib64]]
02-27 22:29:44.990: W/System.err(6457): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
02-27 22:29:44.990: W/System.err(6457): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
02-27 22:29:44.990: W/System.err(6457): at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
02-27 22:29:44.990: W/System.err(6457): ... 9 more
02-27 22:29:44.990: W/System.err(6457): Suppressed: java.lang.ClassNotFoundException: io.dcloud.streamdownload.DownloadService

bilibili

bilibili

只保留armlib

1231312312312

1231312312312

试试最新版的集成方式

该问题目前已经被锁定, 无法添加新回复