首页 > 其他分享 >uniapp打包Android,出现崩溃Didn't find class "io.dcloud.application.DCloudApplication"

uniapp打包Android,出现崩溃Didn't find class "io.dcloud.application.DCloudApplication"

时间:2023-11-16 14:47:24浏览次数:35  
标签:uniapp DCloudApplication dcloud application io Android find

自己创建的新的Android项目打包的时候一直崩溃,报错:Didn't find class "io.dcloud.application.DCloudApplication"
查找之后在app/build.gradle中发现添加

multiDexEnabled true
compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}

然后直接运行就可以了

标签:uniapp,DCloudApplication,dcloud,application,io,Android,find
From: https://www.cnblogs.com/xxss0903/p/17836189.html

相关文章

  • uniapp运行启动时候出现 The current application is running in a custom debugging
    突然出现这个,原来是uniapp说的自定义基座,是在app/src/main/assets/data/dcloud_contro.xml中需要修改hbuilder标签中的debug的值,如果为true则会出现标题的提示,如果改为false则不会出现标题提示的弹窗<hbuilderdebug="false"syncDebug="false"><apps><appappid="__UNI__......
  • Deploying RDLC files in local mode for ASP.NET applications
    RanintoproblemstryingtodeploymyfirstwebapplicationtouseaSQLServerReportingServicesreport.IcreatedaRDLCfileandboundmyreportviewercontroltoanobjectdatasource.Workedfineonmylocalmachinebutasoftenhappensstoppedwork......
  • uniapp 小程序获取当前经纬度,传递给后端
    //#ifdefMP-WEIXIN//定位方法getUserLocation:function(){var_this=this;wx.getSetting({success:(res)=>{//res.authSetting['scope.userLocati......
  • KET.Application 报错:pywintypes.com_error: (-2147221005, '无效的类字符串', None,
    电脑突然有一天调用KET.Application总是报错,代码:importwin32com.clientxcl=win32com.client.DispatchEx("KET.Application")xcl.Quit()报错:pywintypes.com_error:(-2147221005,'无效的类字符串',None,None)WIN11系统,最新版WPSAI,之前用的好好的,不知道最近卸载了......
  • springboot~ConfigurableListableBeanFactory和ApplicationContext的使用场景
    在工具类中封装getBean,使用哪个接口来实现实事上,在工具类中,实现BeanFactoryPostProcessor和ApplicationContextAware接口后,使用它们构造方法里的对象ConfigurableListableBeanFactory和ApplicationContext都可以很方便的获取spring容器里的bean,而在实际应用时,还有有些不同的,比如在......
  • uniapp开发笔记
    控件toast控件uni.showToast({icon:'none',title:'输入topic'})注意点引入图片需要的注意事项图片的宽度不能是auto相对路径和绝对路径绝对路径要以/开头示例代码{bigUrl:"static/image/img/Children.jpg",data:[{......
  • springboot 注解学习之——@SpringBootApplication
    springboot注解学习之——@SpringBootApplicationspringboot版本3.1.5@Inherited//不认识的注解,顺便学习,字面意思:继承@SpringBootConfiguration//字面意思:SpringBoot配置@EnableAutoConfiguration//字面意思:可以自动配置@Inherited它是一个元注解(就是用来声明注解......
  • uniapp 判断蓝牙是否打开并打开蓝牙
    1.创建触发时间的按钮<viewclass="suibian"><button@click="open">打开蓝牙</button></view>2.打开弹窗open(){constBluetoothAdapter=plus.android.importClass('android.bluetooth.BluetoothAdapter');//引入J......
  • uniapp 之绘制海报 并适应机型
    之前绘制的海报出现的问题:①海报有一角圆角没体现出来②海报内容随机型,变动到其他位置(并不是想要的地方)针对于这个问题进行修改注意:海报设置的宽度与你canvas给的标签的宽高是保持一致,下面图片为完成的海报图    一、设置海报的初......
  • The Pktgen Application
    Pktgen,(Packet Gen-erator)isasoftwarebasedtrafficgeneratorpoweredbytheDPDKfastpacketprocessingframework.Pktgen(数据包生成器)是一款基于软件的流量生成器,由DPDK快速数据包处理框架提供支持。SomeofthefeaturesofPktgenare:Pktgen的一些功能包括......