在本文中,我们将给您介绍关于java-jar启动错误NoautoconfigurationclassesfoundinMETA-INF/spring.factories的详细内容,并且为您解答java
在本文中,我们将给您介绍关于java -jar 启动错误 No auto configuration classes found in META-INF/spring.factories的详细内容,并且为您解答java启动报错的相关问题,此外,我们还将为您提供关于 html 的 meta 总结,html 标签中 meta 属性使用介绍、 html 的 meta 总结,html 标签中 meta 属性使用介绍_html/css_WEB-ITnose、@SpringBootApplication 是否能够在没有 META-INF/spring.factories 的情况下找到并自动配置所有依赖项的 bean?、actionbarsherlock – Android Studio和ProGuard – 无法写入资源[META-INF / MANIFEST.MF](重复的zip条目[volley.jar:META-INF / MANIFEST.MF])的知识。
本文目录一览:- java -jar 启动错误 No auto configuration classes found in META-INF/spring.factories(java启动报错)
- html 的 meta 总结,html 标签中 meta 属性使用介绍
- html 的 meta 总结,html 标签中 meta 属性使用介绍_html/css_WEB-ITnose
- @SpringBootApplication 是否能够在没有 META-INF/spring.factories 的情况下找到并自动配置所有依赖项的 bean?
- actionbarsherlock – Android Studio和ProGuard – 无法写入资源[META-INF / MANIFEST.MF](重复的zip条目[volley.jar:META-INF / MANIFEST.MF])
java -jar 启动错误 No auto configuration classes found in META-INF/spring.factories(java启动报错)
jdk11、springboot2.6.2、springboot-javafx-support2.1.6
使用javafx 开发客户端,使用springboot打包成可执行jar,运行时报No auto configuration classes found in META-INF/spring.factories错误,网上搜了很多,比如加入下面的:
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
<mainClass>com.tyzn.app.App</mainClass>
</configuration>
</plugin>
依然报这个错误
html 的 meta 总结,html 标签中 meta 属性使用介绍
引子
之前的我的博客中对于meta有个介绍,例如:http://www.haorooms.com/post/liulanq_think_ie 浏览器安全性想到的这篇文章,中间介绍了meta下面IE的一些属性,可以实现页面之间的过渡转换。已经SEO优化中有所提及。下面具体介绍一下meta的功能和使用。
前言
meta是html语言head区的一个辅助性标签。也许你认为这些代码可有可无。其实如果你能够用好meta标签,会给你带来意想不到的效果,meta标签的作用有:搜索引擎优化(SEO),定义页面使用语言,自动刷新并指向新的页面,实现网页转换时的动态效果,控制页面缓冲,网页定级评价,控制网页显示的窗口等!
html的meta总结
meta标签的组成:meta标签共有两个属性,它们分别是http-equiv属性和name属性,不同的属性又有不同的参数值,这些不同的参数值就实现了不同的网页功能。
1、name属性
name属性主要用于描述网页,与之对应的属性值为content,content中的内容主要是便于搜索引擎机器人查找信息和分类信息用的。
meta标签的name属性语法格式是:
<meta name="参数"content="具体的参数值">。
其中name属性主要有以下几种参数:
A、Keywords(关键字)
说明:keywords用来告诉搜索引擎你网页的关键字是什么。
举例:
<meta name="keywords"content="meta总结,html meta,meta属性,meta跳转">
B、description(网站内容描述)
说明:description用来告诉搜索引擎你的网站主要内容。
举例:
<meta name="description"content="haorooms博客,html的meta总结,meta是html语言head区的一个辅助性标签。">
C、robots(机器人向导)
说明:robots用来告诉搜索机器人哪些页面需要索引,哪些页面不需要索引。
content的参数有all,none,index,noindex,follow,nofollow。默认是all。
举例:
<meta name="robots"content="none">
具体参数如下:
信息参数为all:文件将被检索,且页面上的链接可以被查询;
信息参数为none:文件将不被检索,且页面上的链接不可以被查询;
信息参数为index:文件将被检索;
信息参数为follow:页面上的链接可以被查询;
信息参数为noindex:文件将不被检索,但页面上的链接可以被查询;
信息参数为nofollow:文件将被检索,但页面上的链接不可以被查询;
D、author(作者)
说明:标注网页的作者
举例:
<meta name="author"content="root,root@xxxx.com">
E、generator
<meta name="generator"content="信息参数"/>
meta标签的generator的信息参数,代表说明网站的采用的什么软件制作。
F、COPYRIGHT
<META NAME="COPYRIGHT"CONTENT="信息参数">
meta标签的COPYRIGHT的信息参数,代表说明网站版权信息。
G、revisit-after
<META name="revisit-after"CONTENT="7days">
revisit-after代表网站重访,7days代表7天,依此类推。
2、http-equiv属性
http-equiv顾名思义,相当于http的文件头作用,它可以向浏览器传回一些有用的信息,以帮助正确和精确地显示网页内容,与之对应的属性值为content,content中的内容其实就是各个参数的变量值。
meta标签的http-equiv属性语法格式是:
<meta http-equiv="参数"content="参数变量值">;
其中http-equiv属性主要有以下几种参数:
A、Expires(期限)
说明:可以用于设定网页的到期时间。一旦网页过期,必须到服务器上重新传输。
用法:
<meta http-equiv="expires"content="Fri,12Jan200118:18:18GMT">
注意:必须使用GMT的时间格式。
B、Pragma(cache模式)
说明:禁止浏览器从本地计算机的缓存中访问页面内容。
用法:
<meta http-equiv="Pragma"content="no-cache">
注意:这样设定,访问者将无法脱机浏览。
C、Refresh(刷新)
说明:自动刷新并指向新页面。
用法:
<meta http-equiv="Refresh"content="2;URL=http://www.haorooms.com"> //(注意后面的引号,分别在秒数的前面和网址的后面)
注意:其中的2是指停留2秒钟后自动刷新到URL网址。
D、Set-Cookie(cookie设定)
说明:如果网页过期,那么存盘的cookie将被删除。
用法:
<meta http-equiv="Set-Cookie"content="cookie value=xxx;expires=Friday,12-Jan-200118:18:18GMT;path=/">
注意:必须使用GMT的时间格式。
E、Window-target(显示窗口的设定)
说明:强制页面在当前窗口以独立页面显示。
用法:
<meta http-equiv="Window-target"content="_top">
注意:用来防止别人在框架里调用自己的页面。
F、content-Type(显示字符集的设定)
说明:设定页面使用的字符集。
用法:
<meta http-equiv="content-Type"content="text/html;charset=gb2312">
具体如下:
meta标签的charset的信息参数如GB2312时,代表说明网站是采用的编码是简体中文;
meta标签的charset的信息参数如BIG5时,代表说明网站是采用的编码是繁体中文;
meta标签的charset的信息参数如iso-2022-jp时,代表说明网站是采用的编码是日文;
meta标签的charset的信息参数如ks_c_5601时,代表说明网站是采用的编码是韩文;
meta标签的charset的信息参数如ISO-8859-1时,代表说明网站是采用的编码是英文;
meta标签的charset的信息参数如UTF-8时,代表世界通用的语言编码;
G、content-Language(显示语言的设定)
用法:
<meta http-equiv="Content-Language"content="zh-cn"/>
H、Cache-Control指定请求和响应遵循的缓存机制。
Cache-Control指定请求和响应遵循的缓存机制。在请求消息或响应消息中设置Cache-Control并不会修改另一个消息处理过程中的缓存处理过程。请求时的缓存指令包括no-cache、no-store、max-age、max-stale、min-fresh、on
ly-if-cached,响应消息中的指令包括public、private、no-cache、no-store、no-transform、must-revalidate、proxy-revalidate、max-age。各个消息中的指令含义如下
Public指示响应可被任何缓存区缓存
Private指示对于单个用户的整个或部分响应消息,不能被共享缓存处理。这允许服务器仅仅描述当用户的部分响应消息,此响应消息对于其他用户的请求无效
no-cache指示请求或响应消息不能缓存
no-store用于防止重要的信息被无意的发布。在请求消息中发送将使得请求和响应消息都不使用缓存。
max-age指示客户机可以接收生存期不大于指定时间(以秒为单位)的响应
min-fresh指示客户机可以接收响应时间小于当前时间加上指定时间的响应
max-stale指示客户机可以接收超出超时期间的响应消息。如果指定max-stale消息的值,那么客户机可以接收超出超时期指定值之内的响应消息。
J、http-equiv="imagetoolbar"
<meta http-equiv="imagetoolbar"content="false"/>
指定是否显示图片工具栏,当为false代表不显示,当为true代表显示。
K、Content-Script-Type
<Meta http-equiv="Content-Script-Type"Content="text/javascript">
W3C网页规范,指明页面中脚本的类型。
L 页面跳转,只用于IE
具体请看 http://www.haorooms.com/post/liulanq_think_ie
html 的 meta 总结,html 标签中 meta 属性使用介绍_html/css_WEB-ITnose
引子
之前的我的博客中对于meta有个介绍,例如:http://www.haorooms.com/post/liulanq_think_ie 浏览器安全性想到的这篇文章,中间介绍了meta下面ie的一些属性,可以实现页面之间的过渡转换。已经seo优化中有所提及。下面具体介绍一下meta的功能和使用。
前言
meta是html语言head区的一个辅助性标签。也许你认为这些代码可有可无。其实如果你能够用好meta标签,会给你带来意想不到的效果,meta标签的作用有:搜索引擎优化(SEO),定义页面使用语言,自动刷新并指向新的页面,实现网页转换时的动态效果,控制页面缓冲,网页定级评价,控制网页显示的窗口等!
html的meta总结
meta标签的组成:meta标签共有两个属性,它们分别是http-equiv属性和name属性,不同的属性又有不同的参数值,这些不同的参数值就实现了不同的网页功能。
1、name属性
name属性主要用于描述网页,与之对应的属性值为content,content中的内容主要是便于搜索引擎机器人查找信息和分类信息用的。
meta标签的name属性语法格式是:
立即学习“前端免费学习笔记(深入)”;
<meta name="参数"content="具体的参数值">。
其中name属性主要有以下几种参数:
A、Keywords(关键字)
说明:keywords用来告诉搜索引擎你网页的关键字是什么。
举例:
<meta name="keywords"content="meta总结,html meta,meta属性,meta跳转">
B、description(网站内容描述)
说明:description用来告诉搜索引擎你的网站主要内容。
举例:
<meta name="description"content="haorooms博客,html的meta总结,meta是html语言head区的一个辅助性标签。">
C、robots(机器人向导)
说明:robots用来告诉搜索机器人哪些页面需要索引,哪些页面不需要索引。
content的参数有all,none,index,noindex,follow,nofollow。默认是all。
举例:
<meta name="robots"content="none">
具体参数如下:
信息参数为all:文件将被检索,且页面上的链接可以被查询;
信息参数为none:文件将不被检索,且页面上的链接不可以被查询;
信息参数为index:文件将被检索;
信息参数为follow:页面上的链接可以被查询;
信息参数为noindex:文件将不被检索,但页面上的链接可以被查询;
信息参数为nofollow:文件将被检索,但页面上的链接不可以被查询;
D、author(作者)
说明:标注网页的作者
举例:
<meta name="author"content="root,root@xxxx.com">
E、generator
<meta name="generator"content="信息参数"/>
meta标签的generator的信息参数,代表说明网站的采用的什么软件制作。
F、COPYRIGHT
<META NAME="COPYRIGHT"CONTENT="信息参数">
meta标签的COPYRIGHT的信息参数,代表说明网站版权信息。
G、revisit-after
<META name="revisit-after"CONTENT="7days">
revisit-after代表网站重访,7days代表7天,依此类推。
2、http-equiv属性
http-equiv顾名思义,相当于http的文件头作用,它可以向浏览器传回一些有用的信息,以帮助正确和精确地显示网页内容,与之对应的属性值为content,content中的内容其实就是各个参数的变量值。
meta标签的http-equiv属性语法格式是:
<meta http-equiv="参数"content="参数变量值">;
其中http-equiv属性主要有以下几种参数:
A、Expires(期限)
说明:可以用于设定网页的到期时间。一旦网页过期,必须到服务器上重新传输。
用法:
<meta http-equiv="expires"content="Fri,12Jan200118:18:18GMT">
注意:必须使用GMT的时间格式。
B、Pragma(cache模式)
说明:禁止浏览器从本地计算机的缓存中访问页面内容。
用法:
<meta http-equiv="Pragma"content="no-cache">
注意:这样设定,访问者将无法脱机浏览。
C、Refresh(刷新)
说明:自动刷新并指向新页面。
用法:
<meta http-equiv="Refresh"content="2;URL=http://www.haorooms.com"> //(注意后面的引号,分别在秒数的前面和网址的后面)
注意:其中的2是指停留2秒钟后自动刷新到URL网址。
D、Set-Cookie(cookie设定)
说明:如果网页过期,那么存盘的cookie将被删除。
用法:
<meta http-equiv="Set-Cookie"content="cookie value=xxx;expires=Friday,12-Jan-200118:18:18GMT;path=/">
注意:必须使用GMT的时间格式。
E、Window-target(显示窗口的设定)
说明:强制页面在当前窗口以独立页面显示。
用法:
<meta http-equiv="Window-target"content="_top">
注意:用来防止别人在框架里调用自己的页面。
F、content-Type(显示字符集的设定)
说明:设定页面使用的字符集。
用法:
<meta http-equiv="content-Type"content="text/html;charset=gb2312">
具体如下:
meta标签的charset的信息参数如GB2312时,代表说明网站是采用的编码是简体中文;
meta标签的charset的信息参数如BIG5时,代表说明网站是采用的编码是繁体中文;
meta标签的charset的信息参数如iso-2022-jp时,代表说明网站是采用的编码是日文;
meta标签的charset的信息参数如ks_c_5601时,代表说明网站是采用的编码是韩文;
meta标签的charset的信息参数如ISO-8859-1时,代表说明网站是采用的编码是英文;
meta标签的charset的信息参数如UTF-8时,代表世界通用的语言编码;
G、content-Language(显示语言的设定)
用法:
<meta http-equiv="Content-Language"content="zh-cn"/>
H、Cache-Control指定请求和响应遵循的缓存机制。
Cache-Control指定请求和响应遵循的缓存机制。在请求消息或响应消息中设置Cache-Control并不会修改另一个消息处理过程中的缓存处理过程。请求时的缓存指令包括no-cache、no-store、max-age、max-stale、min-fresh、on
ly-if-cached,响应消息中的指令包括public、private、no-cache、no-store、no-transform、must-revalidate、proxy-revalidate、max-age。各个消息中的指令含义如下
Public指示响应可被任何缓存区缓存
Private指示对于单个用户的整个或部分响应消息,不能被共享缓存处理。这允许服务器仅仅描述当用户的部分响应消息,此响应消息对于其他用户的请求无效
no-cache指示请求或响应消息不能缓存
no-store用于防止重要的信息被无意的发布。在请求消息中发送将使得请求和响应消息都不使用缓存。
max-age指示客户机可以接收生存期不大于指定时间(以秒为单位)的响应
min-fresh指示客户机可以接收响应时间小于当前时间加上指定时间的响应
max-stale指示客户机可以接收超出超时期间的响应消息。如果指定max-stale消息的值,那么客户机可以接收超出超时期指定值之内的响应消息。
J、http-equiv="imagetoolbar"
<meta http-equiv="imagetoolbar"content="false"/>
指定是否显示图片工具栏,当为false代表不显示,当为true代表显示。
K、Content-Script-Type
<Meta http-equiv="Content-Script-Type"Content="text/javascript">
W3C网页规范,指明页面中脚本的类型。
L 页面跳转,只用于IE
具体请看 http://www.haorooms.com/post/liulanq_think_ie
@SpringBootApplication 是否能够在没有 META-INF/spring.factories 的情况下找到并自动配置所有依赖项的 bean?
如何解决@SpringBootApplication 是否能够在没有 META-INF/spring.factories 的情况下找到并自动配置所有依赖项的 bean??
为什么在为 Spring Boot 应用程序创建启动器时需要 meta-inf/spring.factories
?如果完全省略或留空怎么办?
目标应用程序的 @SpringBootApplication
不是
三个注解的组合@Configuration(用于基于Java的 配置)、@ComponentScan(用于组件扫描)和 @EnableAutoConfiguration
在没有meta-inf/spring.factories
帮助的情况下扫描所有内容并找到所有起始者的所有豆子?
解决方法
组件扫描将扫描您提供的包。从技术上讲,您也可以告诉它扫描所有依赖项的包,它会开始加载其中定义的任何 bean。如果您没有指定要扫描的任何包,那么 Spring 将使用应用注解的基础包,这很可能不包括在任何依赖库中定义的 bean。
还有另外一层——你使用的很多库可能使用“@AutoConfigureBefore”之类的注解来给出关于 bean 创建顺序的 spring 指令。组件扫描不会尊重这一点,如果某些依赖项试图覆盖来自另一个使用 @ConditionalOnMissingBean 注释的 bean(即仅在它不存在时创建此 bean),这可能会导致一些奇怪的行为。你很容易得到名称冲突问题,即首先创建该 bean,然后也创建了覆盖 bean。
所以答案似乎是否定的。你需要 spring.factories。
,目标应用程序的@SpringBootApplication 不会扫描所有内容...
不,它不会扫描所有内容,因为如果扫描它可能需要大量时间和资源。想一想,为了理解扩展名为*.class
的文件是否包含一个bean(例如用@Component
注释的东西),它至少需要读取一个类并分析字节码甚至将其加载到内存中以通过反射检查注释。
因此,如果您的应用程序的根包在 com.sample.app
(带有 @SpringBootApplication
注释的类的包)中,那么 Spring Boot 按照约定仅扫描此包中的 bean 及其下面的包。这意味着它不会扫描任何第三方(假设它们无论如何都不会被放置在 com.sample.app
中)。
现在确实可以更改组件扫描的规则,但同样,至少出于性能原因,您不想扫描所有内容。
因此自动配置模块(技术上用 META-INF/spring.factories
实现)可以指定一个额外的位置(用 @Configuration
注释的类),尽管它们没有放置在应用程序的包下,但 Spring Boot 将加载它们
或者,换句话说,他们不遵守默认的组件扫描规则。
此外,spring.factories
文件允许指定的不仅仅是自动配置规则,例如,您可以在那里指定环境后处理器,以及其他对您的应用程序有用的东西,可能最有益于应用基础架构,但仍然如此。
actionbarsherlock – Android Studio和ProGuard – 无法写入资源[META-INF / MANIFEST.MF](重复的zip条目[volley.jar:META-INF / MANIFEST.MF])
夹:
android-support-v4.jar gson-2.2.4.jar libGoogleAnalyticsV2.jar volley.jar
我正在尝试使用Android Studio Build#AI-130.692269生成签名APK.我检查两个复选框“运行ProGuard”和“包含系统proguard文件”
我的ProGuard路径文件proguard-project.txt如下所示:
# To enable ProGuard in your project,edit project.properties # to define the proguard.config property as described in that file. # # Add project specific ProGuard rules here. # By default,the flags in this file are appended to flags specified # in ${sdk.dir}/tools/proguard/proguard-android.txt # You can edit the include path and order by changing the ProGuard # include property in project.properties. # # For more details,see # http://developer.android.com/guide/developing/tools/proguard.html # Add any project specific keep options here: # If your project uses WebView with JS,uncomment the following # and specify the fully qualified class name to the JavaScript interface # class: #-keepclassmembers class fqcn.of.javascript.interface.for.webview { # public *; #}
我编辑了project.properties,现在看起来像:
# This file is automatically generated by Android Tools. # Do not modify this file -- YOUR CHANGES WILL BE ERASED! # # This file must be checked in Version Control Systems. # # To customize properties used by the Ant build system edit # "ant.properties",and override values to adapt the script to your # project structure. # # To enable ProGuard to shrink and obfuscate your code,uncomment this (available properties: sdk.dir,user.home): #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt proguard.config=/Applications/adt-bundle-mac-x86_64/sdk/tools/proguard/proguard-android.txt:proguard-project.txt # Project target. target=android-17 android.library=false android.library.reference.1=../AndroidBarSherlock/actionbarsherlock
这是我得到的输出:
information:ProGuard: [SocialPrice] ProGuard,version 4.7 information:ProGuard: [SocialPrice] Reading input... information:ProGuard: [SocialPrice] Reading program jar [/Users/sdelamo/Library/Caches/AndroidStudioPreview/compile-server/_temp_/proguard_input4364141808943557175.jar] information:ProGuard: [SocialPrice] Reading program jar [/Users/sdelamo/Documents/Developer/android/facebook-android-sdk-3.0.1/facebook/libs/android-support-v4.jar] information:ProGuard: [SocialPrice] Reading program jar [/Users/sdelamo/Documents/workspaceAndroid/SocialPrice/libs/volley.jar] information:ProGuard: [SocialPrice] Reading program jar [/Users/sdelamo/Documents/workspaceAndroid/SocialPrice/libs/libGoogleAnalyticsV2.jar] information:ProGuard: [SocialPrice] Reading program jar [/Users/sdelamo/Documents/workspaceAndroid/SocialPrice/libs/gson-2.2.4.jar] information:ProGuard: [SocialPrice] Reading library jar [/Applications/Android Studio.app/sdk/platforms/android-17/android.jar] information:ProGuard: [SocialPrice] Initializing... information:ProGuard: [SocialPrice] Note: com.google.analytics.tracking.android.AdHitIdGenerator: can''t find dynamically referenced class com.google.ads.AdRequest information:ProGuard: [SocialPrice] Note: com.google.gson.internal.UnsafeAllocator: can''t find dynamically referenced class sun.misc.Unsafe information:ProGuard: [SocialPrice] Note: the configuration refers to the unkNown class ''com.google.vending.licensing.ILicensingService'' information:ProGuard: [SocialPrice] Note: the configuration refers to the unkNown class ''com.android.vending.licensing.ILicensingService'' information:ProGuard: [SocialPrice] Note: there were 2 references to unkNown classes. information:ProGuard: [SocialPrice] You should check your configuration for typos. information:ProGuard: [SocialPrice] Note: there were 2 unresolved dynamic references to classes or interfaces. information:ProGuard: [SocialPrice] Ignoring unused library classes... information:ProGuard: [SocialPrice] Original number of library classes: 3259 information:ProGuard: [SocialPrice] Final number of library classes: 841 information:ProGuard: [SocialPrice] Printing kept classes,fields,and methods... information:ProGuard: [SocialPrice] Shrinking... information:ProGuard: [SocialPrice] Printing usage to [/Users/sdelamo/Documents/workspaceAndroid/SocialPrice/proguard_logs/usage.txt]... information:ProGuard: [SocialPrice] Removing unused program classes and class elements... information:ProGuard: [SocialPrice] Original number of program classes: 921 information:ProGuard: [SocialPrice] Final number of program classes: 579 information:ProGuard: [SocialPrice] Obfuscating... information:ProGuard: [SocialPrice] Printing mapping to [/Users/sdelamo/Documents/workspaceAndroid/SocialPrice/proguard_logs/mapping.txt]... information:ProGuard: [SocialPrice] Writing output... information:ProGuard: [SocialPrice] Preparing output jar [/Users/sdelamo/Library/Caches/AndroidStudioPreview/compile-server/socialprice_a27782ee/android/intermediate_artifacts/SocialPrice/obfuscated_sources.jar] information:ProGuard: [SocialPrice] copying resources from program jar [/Users/sdelamo/Library/Caches/AndroidStudioPreview/compile-server/_temp_/proguard_input4364141808943557175.jar] information:ProGuard: [SocialPrice] copying resources from program jar [/Users/sdelamo/Documents/Developer/android/facebook-android-sdk-3.0.1/facebook/libs/android-support-v4.jar] information:ProGuard: [SocialPrice] copying resources from program jar [/Users/sdelamo/Documents/workspaceAndroid/SocialPrice/libs/volley.jar] information:ProGuard: [SocialPrice] copying resources from program jar [/Users/sdelamo/Documents/workspaceAndroid/SocialPrice/libs/libGoogleAnalyticsV2.jar] information:ProGuard: [SocialPrice] copying resources from program jar [/Users/sdelamo/Documents/workspaceAndroid/SocialPrice/libs/gson-2.2.4.jar] information:ProGuard: [SocialPrice] Printing classes to [/Users/sdelamo/Documents/workspaceAndroid/SocialPrice/proguard_logs/dump.txt]... information:Compilation completed successfully with 4 warnings in 2 min 28 sec information:0 errors information:4 warnings Warning:ProGuard: [SocialPrice] You should check if you need to specify additional program jars. Warning:ProGuard: [SocialPrice] Warning: can''t write resource [meta-inf/MANIFEST.MF] (Duplicate zip entry [volley.jar:meta-inf/MANIFEST.MF]) Warning:ProGuard: [SocialPrice] Warning: can''t write resource [meta-inf/MANIFEST.MF] (Duplicate zip entry [libGoogleAnalyticsV2.jar:meta-inf/MANIFEST.MF]) Warning:ProGuard: [SocialPrice] Warning: can''t write resource [meta-inf/MANIFEST.MF] (Duplicate zip entry [gson-2.2.4.jar:meta-inf/MANIFEST.MF])
我是ProGuard的新手,所以欢迎任何反馈.
解决方法
通过增加
packagingOptions { exclude ''meta-inf/DEPENDENCIES'' exclude ''meta-inf/NOTICE'' exclude ''meta-inf/LICENSE'' exclude ''meta-inf/LICENSE.txt'' exclude ''meta-inf/NOTICE.txt'' }
到build.gradle中的android部分,错误消失了.
找到了解决方案
Duplicate files copied (Android Studio 0.4.0)
今天的关于java -jar 启动错误 No auto configuration classes found in META-INF/spring.factories和java启动报错的分享已经结束,谢谢您的关注,如果想了解更多关于 html 的 meta 总结,html 标签中 meta 属性使用介绍、 html 的 meta 总结,html 标签中 meta 属性使用介绍_html/css_WEB-ITnose、@SpringBootApplication 是否能够在没有 META-INF/spring.factories 的情况下找到并自动配置所有依赖项的 bean?、actionbarsherlock – Android Studio和ProGuard – 无法写入资源[META-INF / MANIFEST.MF](重复的zip条目[volley.jar:META-INF / MANIFEST.MF])的相关知识,请在本站进行查询。
本文标签: