unityCould not produce class with ID 0. This could
2019-09-16 22:25
1946 查看
unity 打包webgl或者ios,安卓是,加载ab文件突然莫名其妙的报错出了
Could not produce class with ID 0. This could be caused by a class being stripped from the build even though it is needed. Try disabling 'Strip Engine Code' in Player Settings.
这样的bug。但是在编辑器里面没有问题。 ![](https://s1.51cto.com/images/blog/201909/16/789b5fe2166c5f29d3acbebe5f9fa228.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=) 本人通过网上查询得到了如果下的解决方案: 打开 PlayerSeting 界面里面 ![](https://s1.51cto.com/images/blog/201909/16/99bd475a586b90dfe8b7465235f029d2.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=) 取消 Strip Engine Code的勾选 ![](https://s1.51cto.com/images/blog/201909/16/56e93c4e588cee128a770bc06e5058a0.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=) 再次打包就可以 了。 原博客地址:https://www.cnblogs.com/shenlaiyaoshi/p/7865450.html
相关文章推荐
- Unity3D_Could not produce Class With ID xxx
- IOS错误Could not produce class with ID
- with root cause java.lang.NoClassDefFoundError:Could not initialize class com.AlipaySubmit
- org.hibernate.WrongClassException: Object with id: 3 was not of the specified subclass
- docker-compose出现错误:Creating fail with Could not find container for entity id <id>
- 1 Could not resolve XML resource [null] with public ID [null]
- Could not instantiate bean class [java.util.List]: Specified class is an interface] with root cause
- android 使用Tabhost 发生could not create tab content because could not find view with id 错...
- tomcat错误:java.io.FileNotFoundException: Could not resolve XML resource [null] with public ID [null]
- with root cause java.lang.NoClassDefFoundError:Could not initialize class com.AlipaySubmit
- java.io.FileNotFoundException: Could not resolve XML resource [null] with public ID [null], system I
- with root cause java.lang.NoClassDefFoundError:Could not initialize class com.AlipaySubmit
- Android使用TabHost程序异常终止could not create tab content because could not find view with id 错误
- with root cause java.lang.NoClassDefFoundError:Could not initialize class com.AlipaySubmit
- android 使用Tabhost 发生could not create tab content because could not find view with id 错...
- Could not resolve XML resource [null] with public ID [-//Sun Microsystems, Inc.//DTD Web Applicatio
- with root cause java.lang.NoClassDefFoundError:Could not initialize class com.AlipaySubmit
- with root cause java.lang.NoClassDefFoundError:Could not initialize class com.AlipaySubmit
- with root cause java.lang.NoClassDefFoundError:Could not initialize class com.AlipaySubmit
- with root cause java.lang.NoClassDefFoundError:Could not initialize class com.AlipaySubmit