unity转apk出现错误,求大神解答 80C

错误代码有两个
第一个
CommandInvokationFailure: Failed to build apk.
C:/Program Files/Java/jdk-9\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="D:/Program Files/android-sdk-windows\tools" -Dfile.encoding=UTF8 -jar "D:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -

stderr[
Exception in thread "main" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at SDKMain.main(SDKMain.java:130)
Caused by: java.lang.NoClassDefFoundError: sun/misc/BASE64Encoder
at com.android.sdklib.internal.build.SignedJarBuilder.(SignedJarBuilder.java:177)
at com.android.sdklib.build.ApkBuilder.init(ApkBuilder.java:446)
at com.android.sdklib.build.ApkBuilder.(ApkBuilder.java:422)
at com.android.sdklib.build.ApkBuilder.(ApkBuilder.java:362)
at UnityApkBuilder.(UnityApkBuilder.java:214)
at UnityApkBuilder.main(UnityApkBuilder.java:34)
... 5 more
Caused by: java.lang.ClassNotFoundException: sun.misc.BASE64Encoder
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:466)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:563)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
... 11 more
]
stdout[

]
exit code: 1
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandInternal (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandSafe (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.HostView:OnGUI()

第二个
UnityEditor.BuildPlayerWindow+BuildMethodException: Build failed with errors.
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x001b9] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:162
at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00050] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:83
UnityEditor.HostView:OnGUI()

0

1个回答

1
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
ELM——HOG
代码有问题 出现内存访问错误 求大神帮忙修改
u3d打包apk出现的错误情况(1)
错误截图: 错误原因:Gradle build failed,Gradle构建失败。 解决方法点击 File→BuildSettings→Build System,把 Gradle 选择为 Interanl重新打包即可。如下图 拓展 Unity打包安卓apk时Build Setting中的三种Build System Internal:Unity内置,仅需Android SDK支持。不能导出工程...
安卓安装apk时出现“解析程序包时出现错误” 的解决方法
测试升级的时候发现安卓7.0以上的版本出现升不了级的情况    百度找到答案   第一步:根据安卓版本适配不同的apk打开方式 File file = new File(apkPath); //更新包文件Intent intent = new Intent(); intent.setAction(Intent.ACTION_VIEW); if (Build.VERSION.SDK_I
【Unity学习笔记】关于在Unity中build apk error
写的第一个Unity小程序在打包成apk的时候就遇到了一个坎,build的时候一直提示以下错误: CommandInvokationFailure: Failed to re-package resources. ...\build-tools\23.0.2\aapt.exe package –auto-add-overlay -v -f -m -J “gen” -M
unity打包安卓apk 奇葩错误总结
1.CommandInvokationFailure: Unable to convert classes into dex format. C:/Program Files (x86)/Java/jdk1.8.0_73\bin\java.exe -Xmx10 -Dcom.android.sdkmanager.toolsdir="D:/android-sdk-windows244\tools" -...
安装apk解析包时出现错误(应用内更新)
最近遇到一个问题,有个别用户在应用内更新版本会出现解析包失败的情况,而且有的机型还是必现,浏览器下载就没问题,应用内就有问题,这就很让人费解,之前一直没关注过这种情况,但是用户就是上帝,有问题必须得解决啊!后来查了一些资料,发现想要解决这种情况还是有迹可循的,下面是总结的几种可能出现的情况,做了一些总结。1、JDK版本问题,比如jdk1.6环境下打包可正常安装,1.7环境打的包就不行解决办法是,需要
Unity打包到Android错误解决
上面报错的原因是:我开发时用jdk1.8,然后因为我重装系统,我重新指认JDK,这时我在网上下了个jdk1.7,结果发布时就报上面错误解决办法,我从新在网上下了jdk1.8,就可以顺利发布FR:海涛高软(QQ群:386476712)
求大神解答Matlab题目求程序代码
-
Unity3d导出安卓项目错误
Caused by: java.lang.NoClassDefFoundError: android.support.v4.util.SimpleArrayMap 需要引入appcompat_v7的项目。引入项目自动引入库。使用谷歌广告需要引入 google-play-services-libs项目。
【Unity3D】Unity3d打包apk出现的问题
Android Studio无法找到tool.jar解决方法! Failed to build apk.See the Console for details. CommandInvokationFailure:Failed to build apk.这里写图片描述 困扰两天的问题终于解决了,以为是SDK的问题,换了无数个SDK,结果都不行。 然后以为是SDK tool的问题,又换了好多to
apk安装出现两个图标
package="com.sinosoft.beijing.ficc.app"     android:versionCode="1"     android:versionName="1.0" >             android:minSdkVersion="18"         android:targetSdkVersion="23" />    
struts2和spring整合出现错误,求大神解答
一月 09, 2015 9:59:52 下午 org.apache.catalina.core.StandardContext listenerStartrnSEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnjava.lang.NoSuchMethodError: org.springframework.beans.factory.annotation.InjectionMetadata.(Ljava/lang/Class;)Vrn at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findPersistenceMetadata(PersistenceAnnotationBeanPostProcessor.java:350)rn at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(PersistenceAnnotationBeanPostProcessor.java:296)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors(AbstractAutowireCapableBeanFactory.java:798)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:493)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)rn at org.apache.catalina.core.StandardService.start(StandardService.java:525)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:595)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:606)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rn一月 09, 2015 9:59:52 下午 org.apache.catalina.core.StandardContext startrnSEVERE: Error listenerStartrn一月 09, 2015 9:59:52 下午 org.apache.catalina.core.StandardContext startrnSEVERE: Context [/MyOA] startup failed due to previous errorsrnrn以上是错误提示。rn我的监听器配置如下:rn[img=https://img-bbs.csdn.net/upload/201501/09/1420812144_769869.png][/img]rn我的路径如下:rn[img=https://img-bbs.csdn.net/upload/201501/09/1420812215_538155.png][/img]rnrn百度了好久都没解答出来,包也导入了。
使用hibernate注解出现错误,求大神解答
[color=#FF0000]四月 22, 2017 2:23:31 下午 org.hibernate.Version logVersionrnINFO: HHH000412: Hibernate Core 5.1.0.Finalrn四月 22, 2017 2:23:31 下午 org.hibernate.cfg.Environment rnINFO: HHH000206: hibernate.properties not foundrn四月 22, 2017 2:23:31 下午 org.hibernate.cfg.Environment buildBytecodeProviderrnINFO: HHH000021: Bytecode provider name : javassistrn四月 22, 2017 2:23:31 下午 org.hibernate.annotations.common.reflection.java.JavaReflectionManager rnINFO: HCANN000001: Hibernate Commons Annotations 5.0.1.Finalrn四月 22, 2017 2:23:31 下午 org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl configurernWARN: HHH10001002: Using Hibernate built-in connection pool (not for production use!)rnException in thread "main" org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]rn at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:244)rn at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:208)rn at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:189)rn at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:51)rn at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:94)rn at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:217)rn at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:189)rn at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.handleTypes(MetadataBuildingProcess.java:352)rn at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:111)rn at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.build(MetadataBuildingProcess.java:83)rn at org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:418)rn at org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:87)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:692)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:724)rn at test.HibernateUtil.getSessionFactory(HibernateUtil.java:32)rn at test.PersonManager.createAndStorePerson(PersonManager.java:20)rn at test.PersonManager.main(PersonManager.java:9)rnCaused by: org.hibernate.boot.registry.classloading.spi.ClassLoadingException: Unable to load class [com.mysql.jdbc.Driver]rn at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:229)rn at org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl.loadDriverIfPossible(DriverManagerConnectionProviderImpl.java:161)rn at org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl.buildCreator(DriverManagerConnectionProviderImpl.java:117)rn at org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl.configure(DriverManagerConnectionProviderImpl.java:73)rn at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:94)rn at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:217)rn at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:189)rn at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.buildJdbcConnectionAccess(JdbcEnvironmentInitiator.java:145)rn at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:66)rn at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35)rn at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:88)rn at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:234)rn ... 16 morernCaused by: java.lang.ClassNotFoundException: Could not load requested class : com.mysql.jdbc.Driverrn at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl$AggregatedClassLoader.findClass(ClassLoaderServiceImpl.java:217)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:424)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:357)rn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Class.java:348)rn at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:226)rn ... 27 more[/color]rnrnrn[b]HibernateUtil.java[/b]rn[code=java]package test;rnrnimport org.hibernate.SessionFactory;rnimport org.hibernate.cfg.AnnotationConfiguration;rnimport org.hibernate.cfg.Configuration;rnrnrnpublic class HibernateUtil rn /*private static SessionFactory sessionFactory;rnrn static rnrn try rnrn // Create the SessionFactory from hibernate.cfg.xmlrnrn SessionFactory sessionFactory =new AnnotationConfiguration().configure().buildSessionFactory();rnrn catch (Throwable ex) rnrn // Make sure you log the exception, as it might be swallowedrnrn System.err.println("Initial SessionFactory creation failed." + ex);rnrn throw new ExceptionInInitializerError(ex);rnrn rnrn */rnrn public static SessionFactory getSessionFactory() rn SessionFactory sessionFactory =new Configuration().configure().buildSessionFactory();rn return sessionFactory;rnrn rn[/code]rnrn[b]PersonManager.java[/b]rn[code=java]package test;rnrnimport org.hibernate.Session;rnrnpublic class PersonManager rnrn public static void main(String[] args) rnrn createAndStorePerson();rnrn HibernateUtil.getSessionFactory().close();rnrn rnrn rnrn private static void createAndStorePerson() rnrn Session session = // 通过Session工厂获取Session对象rn HibernateUtil.getSessionFactory().getCurrentSession();rn session.beginTransaction(); //开始事务rnrn rnrn Teacher person = new Teacher();rnrn person.setUsername("何小景");rnrn person.setAge(26);rnrn session.save(person);rnrn rnrn session.getTransaction().commit(); // 提交事务rnrn rnrn [/code]rnrn[b]Teacher.java[/b]rn[code=java]package test;rnrnimport java.io.Serializable;rnrnrnimport javax.persistence.*;rnrnimport org.hibernate.annotations.GenericGenerator;rnrnrn@Entity // 表示为实体类rnrn@Table(name="t_teacher") // 表名注解rnrnpublic class Teacher implements Serializable rnrn rnrn private int id;rnrn private String username;rnrn private int age;rnrn rnrn @Id // 表示主键rnrn @GenericGenerator(name = "generator", strategy = "native") @GeneratedValue(generator = "generator") // 自增长rnrn @Column(name = "id") // 类属性对应着表字段rnrn public int getId() rnrn return id;rnrn rnrn public void setId(int id) rnrn this.id = id;rnrn rnrn rnrn @Column(name="t_username") // 类属性对应着表字段rnrn public String getUsername() rnrn return username;rnrn rnrn rnrn public void setUsername(String username) rnrn this.username = username;rnrn rn rnrn @Column(name="t_age") // 在实体类属性进行注解,类属性对应着表字段rn public int getAge() rnrn return age;rnrn rnrn public void setAge(int age) rnrn this.age = age;rnrn rn rn[/code]rnrn[b]hibernate.cfg.xml[/b]rn[code=java]rnrnrnrnrnrn mysqlrn rn jdbc:mysql://localhost:3306/hxjrn rn rootrn 1234rn rn com.mysql.jdbc.Driverrn rn rn org.hibernate.dialect.MySQLDialectrn rnrnrnrn[/code]rn[size=18px][b][color=#FF0000]rn我导入的包rnejb3-persistence.jarrnhibernate-commons-annotations.jarrnhibernate-jpa-2.0-api-1.0.1.Final.jarrnhibernate-annotations.jar[/color][/b][/size]rnrnrnrnrnrnrnrnrnrnrn把 SessionFactory sessionFactory =new Configuration().configure().buildSessionFactory();改为rn SessionFactory sessionFactory =new AnnotationConfiguration().configure().buildSessionFactory();出现下面错误rn[color=#FF0000]SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".rnSLF4J: Defaulting to no-operation (NOP) logger implementationrnSLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.rn四月 22, 2017 3:01:16 下午 org.hibernate.Version logVersionrnINFO: HHH000412: Hibernate Core 5.1.0.Finalrn四月 22, 2017 3:01:16 下午 org.hibernate.cfg.Environment rnINFO: HHH000206: hibernate.properties not foundrn四月 22, 2017 3:01:16 下午 org.hibernate.cfg.Environment buildBytecodeProviderrnINFO: HHH000021: Bytecode provider name : javassistrnException in thread "main" java.lang.NoSuchFieldError: namingStrategyrn at org.hibernate.cfg.AnnotationConfiguration.reset(AnnotationConfiguration.java:250)rn at org.hibernate.cfg.Configuration.(Configuration.java:125)rn at org.hibernate.cfg.Configuration.(Configuration.java:119)rn at org.hibernate.cfg.AnnotationConfiguration.(AnnotationConfiguration.java:108)rn at test.HibernateUtil.getSessionFactory(HibernateUtil.java:32)rn at test.PersonManager.createAndStorePerson(PersonManager.java:20)rn at test.PersonManager.main(PersonManager.java:9)rnrn[/color]rnrn
求大神解答!!!!String转int错误
我是用structs2框架写的rn我的jsp页面代码rnrn id:rn rn rn rn 用户名:rn rn后台action代码:rnpublic String update() throws Exceptionrn String username=request.getParameter("username");rn String password=request.getParameter("password");rn //int id=Integer.parseInt(""+request.getParameter("id"));rn //int id= request.getParameter("id");rn //System.out.println(id);rn /*int id=Integer.parseInt(request.getParameter("id"));*/rn int id=0;rn try id=Integer.parseInt(request.getParameter("id"));rn rn catch(NumberFormatException e)rn //i=0;rn e.printStackTrace();rn rn UserDao userdao=new UserDao();rn User u=new User();rn u.setId(id);rn u.setUsername(username);rn u.setPassword(password);rn userdao.update(u);rn return SUCCESS;rn rn rnrn当进行更新的时候老是报错,rn六月 05, 2016 10:11:13 上午 org.apache.catalina.core.ApplicationDispatcher invokern严重: Servlet.service() for servlet jsp threw exceptionrnjava.lang.NumberFormatException: For input string: "id"rn at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)rn at java.lang.Integer.parseInt(Integer.java:492)rn at java.lang.Integer.parseInt(Integer.java:527)rn at javax.el.ListELResolver.coerce(ListELResolver.java:173)rn at javax.el.ListELResolver.getValue(ListELResolver.java:52)rn at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:67)rn at org.apache.el.parser.AstValue.getValue(AstValue.java:183)rn at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:185)rn at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:986)rn at org.apache.jsp.updateUser_jsp._jspService(updateUser_jsp.java:95)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)rn at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)rn at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)rn at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)rn at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)rn at org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:159)rn at org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:186)rn at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:373)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:277)rn at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:263)rn at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:133)
安卓apk解析包失败,重新签名
最近对一个2年前项目做适配,发现部分手机出现apk解析失败,于是在网上大量研究发现,需要用到jarsigner工具签名,在签名时,要加上2个参数: 复制代码代码如下: -digestalg SHA1 -sigalg MD5withRSA 造成无法签名错误的原因,初步估计是JDK版本的问题。JDK 1.6签名没事,但是1.7会出这个问题。 完整的签名命令如下: 打开cmd命令提示符,切换...
weex 打包成android的apk之后安装提示安装包解析错误
        今天测试weex build android 命令打包成apk文件之后再安卓上安装出现“安装包解析错误”,但是用 weex run android 生成的可以直接安装,后面上网查了一下发现是apk没有签名的原因,特此记录一下。        可以去下载360加固软件,下载地址:http://jiagu.360.cn/ 下载之后对apk进行签名加固就可以在安卓手机上进行安装。...
apk在真机上运行正常,在模拟器上崩溃
最近的一个测试apk,在真机上运行一切正常,但是到了模拟器上一开应用就崩溃,看错误日志也找不到什么头绪,后来看下了引用的so库,发现有x86的,于是把x86的so库加入编译,再到模拟器上运行,就正常了。 android studio中,在gradle里的abiFilters内加入x86即可。 大概原理是: 模拟器一般都是x86架构,所以如果工程有so库的,需要加载x86的so库;而真
Androud Studio 组建,打包apk时报错,处理方法集锦
1: Error:Execution failed for task ‘:xxx_library:mergeDebugAndroidTestResources’.解决办法 解决方案: 点这里 2: Android导入项目报错Error:Execution failed for task ‘:app:transformNativeLibsWithMergeJniLibsForD...
Unity打安卓包常见错误
下面是几种常见的错误及解决方法:  1、INSTALL_FAILED_INVALID_APK:无效的安装包,安装包已损坏  请检查安装包是否完整。如果是xpk包,可以通过手动安装xpk来检测一下。如果是apk包,请重新下载。  2、INSTALL_FAILED_OLDER_SDK:系统版本过低  当前程序不支持您的手机。  3、INSTALL_FAILED_INSUFFICIENT_ST
Unity项目导出AndroidStudio打包出错
apk是可以正常打包,但是…在手机上运行的时候会出现以下错误。 报错: your hardware does not support this application,sorry! = = 然后又是一通google,百度…几番尝试无果… 后来仔细查找Log发现是进入不了Unity界面。出现错误。 Unable to find main (Error) 又是经过一番查找…可算是解决
Unity初识之打包错误
unity项目从5.0.0升级到5.6.3f1 代码中打包Android的apk包, BuildPipeline中,获取fileName,输出路径的时候,需要获取输出路径 之前是用的Aplication.dataPath来获取。 但是运行打包会提示Assets路径不能访问之类的情况. Building to the Assets folder is not allowed. 猜它会对...
解决高版本unity打包apk报错问题,改良版的ADT工具
1.解决高版本unity打包apk报错问题 2.改良版的ADT 3.集成Eclipse,方便查看log。
解决android apk安装后出现2个相同的应用图标
如上图所示,安装完WebRTCDemo后,出现了2个完全一样的应用程序,其中一个为正常的,一个是不可用的。 原因 这是因为Android程序进行打包编译时,将所有的Manifext文件合并后,发现有多个Activity中存在以下Intent-filter. <activity android:name=".MainActivity"> &...
酷派自带日历APK
酷派手机系统自带日历APK,欢迎下载安装包。
Android apk出现两个应用图标
最近更换了Android的开发工具,把自己之前使用了一段时间的eclipse换成了android studio,那就需要把自己的eclipse项目导入到android studio中。在把一些错误排查完之后,我把android项目安装到手机上的时候,发现我的app在手机上出现了两个图标。一个图标点开之后是黑屏,一个图标点开之后正常打开我的应用,如果卸载其中一个的话,则是把两个都删掉。
下载apk到本地,安装遇到的解析包时出现错误的分析
遇到一些问题,使用代码的结果是无法满足自己的需求,很多时候是和手机本身的的一些权限和机制有关系。 问题1:下载apk到 内部存储,安装时无法找到路径,提示:解析包时发生错误 这个原因就是由于权限的原因,首先内部存储,在权限的原因下,默认为私有,内部存储所以只能本应用自己调用。而安装应用是PackagesInstaller和PackageManager系统的其他部分调用,就等于是外部应用
Unity打包生成APK文件提交应用宝踩坑记录
公司的项目在提交应用宝时,遇到了如下的坑,特记录。 在公司提价APK文件至腾讯应用宝时,腾讯提示有如下错误: 暂时不支持APK Signature Scheme V2,请去掉该类型的签名后再上传。 查找资料发现安卓中的签名共有两种,V1和V2。V2是从Android 7.0新增的签名。由于项目使用Unity2017.1.1开发,默认使用V1和V2两种签名,这一设计是在Unity2017中添加
旧代码 - 最短路 Bellman Ford
/* PROG: Bellman_Ford ID : ouyangyewei LANG: C++ */ #include #include #include #define onlinejudge const int maxn = 1004; const int INF = 0x3F3F3F3F; int N, destination, dist[maxn], path[
更新应用程序安卓apk时出现解析程序包时出现问题
    在一次工作中,需求是进入应用程序splash时检测版本,发现新版本提示用户进行更新,更新好后就自动跳转安装界面。    我当时是把用户点击更新下载后的apk存放到data/data/packageName/files这个目录下,是通过getFilesDir().toString(),通过log打印路径也是完全正确的,打开android studio的Android Device Monit...
Unity3D: 导出Android 工程报错
现象在用 Unity 导出 Android 项目时,遇到 Unable to list target platforms 的问题。如图:问题关键在于,错误描述中提到的 "Invalid command android", 这是AndroidSDK 中 tools 目录下的 android.bat  命令,这里报出 是个无效的命令,说明可能是这个 tools 目录下的文件出了问题。那么就好解决了。重...
安卓包出现两个图标问题
因为要配置闪屏logo,出现了两个图标,是因为android.intent.action.MAIN出现了两次,把原来org.cocos2dx.cpp.AppActivity里边的注释掉,保留启动logo   <activity android:name="com.unicom.dcLoader.welcomeview" and
[Unity踩坑系列]带SD卡的安卓手机,安装apk失败的问题
这绝壁是一个大坑,可惜我们自己的测试机,同事的机器都没有安装SD卡。兼容测试平台也没给我们提供带SD卡的手机测试。于是我们就中招了!
unity3d打APK包时出现的内部构建错误(笔记)
Internal compiler error. See the console log for more information. output was; Error building Player because scripts had compiler errors unity打包APK包出现内部构建错误的时候。 1。关闭unity,打开工程项目文件。 2。删除Library文件夹,
优酷首页出现“此网页包含过多的循环重定向”错误的解决办法
开始的时候我自己的电脑都用的好好的,直到某天打开优酷首页,出现了“此网页包含过多的循环重定向”,就再也看不了优酷的首页了。晚上找了很多的办法都没解决,在今天登录土豆的时候,突然脑袋灵光一闪,想到了优酷和土豆的合并。莫非是因为同时登录了土豆,所以才出现这种问题?遂退出土豆的登录,结果发现错误还真没了,哈哈。 至于彻底解决这个问题,估计要等优酷土豆自己来解决了。
Unity3D之导出的Apk安装失败
最近用Unity3D导出Apk到手机上出现的问题,开始可以正常安装到手机上。然而在我将导出的Apk在电脑的模拟机运行了几次之后,再次将应用复杂到手机上安装却一直安装失败了。后来在Player Settings中改了一下设置,问题解决。 解决方法: 把Player Settings面板中Other Settings下的Configuration下的Install Loaction选
易语言钓鱼源码
求大神买走 求大神买走 易语言钓鱼源码
LeetCode-python-自己and大神的解题思路(一)
由于刚开始练习,所以比较菜。python学了感觉跟没学一样,所以想找些题来练习练习。日后将会不断的更新,如果哪位大神有更好的思路可以在评论区留言。   1. 两数之和   解题思路:由于刚开始,算法知道的比较少,所以就想来分享一下大神们的思路,20个案例用时40ms。他的思路是这样的:建立一个用来存放检查的字典,用target去逐个减去nums列表里的值,将这些差值存入字典,然后遍历列表n...
unity导出安卓apk环境配置
1.首先下载并安装安卓SDK和JAVA JDK: (1)安卓SDK下载地址(需要翻墙): https://developer.android.com/studio/index.html?hl=zh-cn 安装时记住安装路径在哪,其他的按照默认就行 (2)Java JDK下载地址 http://www.oracle.com/technetwork/java/javase/downloa...
apk转jar工具
apk转jar文件,apk转jar文件,apk转jar文件,apk转jar文件,apk转jar文件
解决下载后的apk解析错误问题
android段进行apk更新时,用service实现,以从阿里云上下载为例: public  void downloadFile(Context context, final File file,String fileobjectkey) { // 明文设置secret的方式建议只在测试时使用,更多鉴权模式请参考后面的`访问控制`章节 OSSCredentialProvide
文章热词 机器学习教程 Objective-C培训 交互设计视频教程 颜色模型 设计制作学习
相关热词 mysql关联查询两次本表 native底部 react extjs glyph 图标 java大神班 大数据大神班