在这篇文章中,我们将为您详细介绍IntelliJIDEA中错误的Manifest.mf创建了.jar的内容,并且讨论关于idea的错误提示的相关问题。此外,我们还会涉及一些关于actionbarshe
在这篇文章中,我们将为您详细介绍IntelliJ IDEA中错误的Manifest.mf创建了.jar的内容,并且讨论关于idea的错误提示的相关问题。此外,我们还会涉及一些关于actionbarsherlock – Android Studio和ProGuard – 无法写入资源[META-INF / MANIFEST.MF](重复的zip条目[volley.jar:META-INF / MANIFEST.MF])、Err"The provided manifest file is invalid: Invalid OVF manifest entry"、how to create java test folder in intellij idea、IntelliJ IDEA Maven创建的知识,以帮助您更全面地了解这个主题。
本文目录一览:- IntelliJ IDEA中错误的Manifest.mf创建了.jar(idea的错误提示)
- actionbarsherlock – Android Studio和ProGuard – 无法写入资源[META-INF / MANIFEST.MF](重复的zip条目[volley.jar:META-INF / MANIFEST.MF])
- Err"The provided manifest file is invalid: Invalid OVF manifest entry"
- how to create java test folder in intellij idea
- IntelliJ IDEA Maven创建
IntelliJ IDEA中错误的Manifest.mf创建了.jar(idea的错误提示)
我正在尝试通过IntelliJ IDEA的jar工件将使用OptaPlanner
6.0.1库的项目打包到.jar中,而不是将我的manifest.mf包含标准
Manifest-Version: 1.0Main-Class: a.b.c.app
jar使用ecj-3.7.2.jar中提供的一个,这是OptaPlanner的支持库之一:
Manifest-Version: 1.0Build-Jdk: 1.6.0_26Built-By: ibrandtCreated-By: Apache MavenArchiver-Version: Plexus Archiver
因此,"no main manifest attribute, inappname.jar"
尝试运行该应用程序时会发生错误。如果我手动将.jar文件中的清单替换为我的清单,则一切正常。有什么我可以解决的吗?
我将这些库保存在单独的/ lib目录中,并将它们作为提取目录添加到jar工件的根目录中,IntelliJ IDEA是v13.0.1。
答案1
小编典典我有同样的问题。
确保您的MANIFEST.MF位于:
src/main/resources/META_INF/
不
src/main/java/META_INF/
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)
Err"The provided manifest file is invalid: Invalid OVF manifest entry"
在用vCenter 导入ova的时候遇到报错:"The provided manifest file is invalid: Invalid OVF manifest entry",如下图所示:
问题原因应该是拿到的ova文件有问题,但没时间深究。解决方法:重新打包ova文件
1.下载并安装 VMWare ovf tool
下载地址:https://www.vmware.com/support/developer/ovf/.
2.下载并安装7.zip,来解包ova
下载地址:https://www.7-zip.org/
3.解包
用7.zip解包到E盘下:
检查 E:/下是否产生对应文件:
里面含有文件:
4.重新打包
用ovftool重新打包,进到cmd命令行界面,进入到ovftool所在的安装路径
cd C:\Program Files\VMware\VMware OVF Tool
执行打包命令,使新生成ova文件也存放到E盘下:
ovftool.exe "E:\vthunder-411-P6\vthunder-411-p6.ovf" E:\vThunder.ova
检查文件生成:
5.使用这个重新打包而得的ova文件再进行导入
how to create java test folder in intellij idea
create directory src/test/java, file->project structure->modules, click "sources" tab, select the src/test/java directory just created, in "mark as" line, click "Tests", apply->ok !IntelliJ IDEA Maven创建
使用Maven创建JavaSE工程
指定当前工程Id及修改版本
修改maven
设置当前工程名字及位置
使用Maven创建JavaWeb工程
创建Maven骨架(webapp)
打开Maven 视图
Maven 清理项目
常见错误 https://blog.csdn.net/qq_32778043/article/details/80746668
2019-12-22 08:09:46.587 [RMI TCP Connection(3)-127.0.0.1] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean ''configurationPropertiesRebinderAutoConfiguration'' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$9e8d760c] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-12-22 08:09:48.321 [RMI TCP Connection(3)-127.0.0.1] ERROR o.s.boot.SpringApplication - Application startup failed
java.lang.IllegalArgumentException: Could not resolve placeholder ''properties.environment'' in value "${properties.environment}"
关于IntelliJ IDEA中错误的Manifest.mf创建了.jar和idea的错误提示的问题就给大家分享到这里,感谢你花时间阅读本站内容,更多关于actionbarsherlock – Android Studio和ProGuard – 无法写入资源[META-INF / MANIFEST.MF](重复的zip条目[volley.jar:META-INF / MANIFEST.MF])、Err"The provided manifest file is invalid: Invalid OVF manifest entry"、how to create java test folder in intellij idea、IntelliJ IDEA Maven创建等相关知识的信息别忘了在本站进行查找喔。
本文标签: