manifest

Manifest merger failed, error on compiling

為{幸葍}努か 提交于 2019-12-01 05:31:12
Since downloading the latest SDK and installing Android Studio, my project fails to build. I get the following message: Manifest merger failed with multiple errors My gradle app: apply plugin: 'com.android.application' android { compileSdkVersion 28 defaultConfig { applicationId "com.app.clupascu.oavm" minSdkVersion 21 targetSdkVersion 28 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies {

How do i get jars from manifest's Class-Path-entries

拟墨画扇 提交于 2019-12-01 04:31:58
问题 I have a runnable jar with two jars in the Class-Path entry of its manifest file: Class-Path: module1-0.0.1-SNAPSHOT.jar base-0.0.1-SNAPSHOT.jar Main-Class: test.MySPI The program runs fine and all dependencies in the referenced jars are met. However, when I try to access the class path, the jars are not there: String classpath = System.getProperty("java.class.path"); String[] entries = classpath.split(System.getProperty("path.separator")); for (String entry : entries) { System.out.println(

Is it possible to have SHA1-Digest in java Manifest file without actually using a key

独自空忆成欢 提交于 2019-12-01 04:19:49
问题 Currently we use jarsigner to sign our jar. We then display some SHA1-Digest values for some specific classes to prove to an external auditor that the code has not changed between releases. We only rely on the META-INF/xxx.SF file to get the digest information and we never use the META-INF/xxx.DSA signature block file. As we only need the digest calculation in our code, I was wondering if this is possible to have the .SF file generated with some java tool without actually using a key. I read

Leading dot in android:name really required? [duplicate]

强颜欢笑 提交于 2019-12-01 04:15:19
Possible Duplicate: What's the “dot” for when registering an Activity In all Android examples names of Activities, Services, etc. all start with a dot: <activity android:name=".MyActivity" /> I forgot to do this in all Android projects - but they do work perfect. My question: Is this leading dot really required? EDIT: Here's a small snapshot example from one of my apps. This app works perfect. It doesn't use qualified names and it doesn't use dots: <activity android:exported="false" android:name="Tankvorgaenge" > <intent-filter> <action android:name="android.intent.action.SEARCH" /> </intent

Access Android Manifest attributes in Java

北战南征 提交于 2019-12-01 04:12:59
问题 This is a sample manifest. Is it possible to access the attribute versionCode and versionName from Java? How? <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example" android:versionCode="1" android:versionName="1.0" > [...] </manifest> 回答1: Yep: context.getPackageManager().getPackageInfo (context.getPackageName(), 0).versionName; context.getPackageManager().getPackageInfo (context.getPackageName(), 0).versionCode; 回答2: for version code: int versionCode =

Remove extra unwanted permissions from manifest android

。_饼干妹妹 提交于 2019-12-01 03:50:13
I have android app, I want to check that every permissions mentioned in Manifest is required or not? Basically I want remove unwanted permissions. what should I do? Thanks in advance The answer given by user370305 is generally the correct one. Your third-party code should adequately document what permissions it needs -- combine that with the permissions your own code needs, and you should be set. If you feel that this is insufficient, then: Step #1: Write a unit test suite. Step #2: Add tests to the suite until you have complete statement coverage. Step #3: Get all tests passing in the unit

How can I embed a specific manifest file in a Windows DLL with a CMake build?

独自空忆成欢 提交于 2019-12-01 03:27:45
So I have a DLL that is being built with CMake that requires a specific manifest file to be embedded. In Visual Studio settings I can just add the manifest filename under Manifest Tool/Input and Ouput/Additional Manifest Files, and it works correctly. It seems like this is something that should be doable with CMake, but I have been unable to figure it out. Any ideas on how I can accomplish this with CMake? cmake-3.4 has now learned how to handle *.manifest files listed as source files. https://cmake.org/cmake/help/v3.4/release/3.4.html#other It's not possible to generate the Additional

Manifest merger failed, error on compiling

醉酒当歌 提交于 2019-12-01 03:10:18
问题 Since downloading the latest SDK and installing Android Studio, my project fails to build. I get the following message: Manifest merger failed with multiple errors My gradle app: apply plugin: 'com.android.application' android { compileSdkVersion 28 defaultConfig { applicationId "com.app.clupascu.oavm" minSdkVersion 21 targetSdkVersion 28 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false

Application signing/verification

拜拜、爱过 提交于 2019-12-01 02:38:44
I'm relatively new to Windows development, but have just finished a small project. I want to make my application "verified" like a lot of other applications are. For example, when you launch the application and UAC pops up, it won't have the "publisher unknown" message with the yellow bar and should have a "Verified by: " section on it. I hope I explained that correctly. Does anyone know how to do this? I am hoping it's not like SSL certificates where you have to pay money... Please feel free to let me know if my question was unclear or if I am not explaining it the right way. Thanks!

Caching a large number of images in a jQuery/HTML5 application

拈花ヽ惹草 提交于 2019-12-01 01:49:24
I am building a web application in jQuery/HTML5 which will run in Webkit-based browsers on touchscreen kiosks. There are a large (thousands) number of images which the application uses, which I need cached to each browser. At first I thought a HTML5 cache manifest would be the best option (with the thousands of image URLs listed), but now I wonder if there is a better way? I would consider extensions/plugins too... Thanks in advance! I like this plugin: http://alexrabarts.github.com/jquery-cacheimage/ Here's another alternative: http://technosophos.com/content/precaching-images-jquery-slightly