App manifest references the image which does not have a candidate in the main package error in windows phone 8.1 - manifest

I am just creating app package and got the following error
Need help how to resolve this.

In my case it had to do with the default app scale, as outlined in this blog post:
It appears that the default scale has changed [from 100%] to 200%. OK. Fine.
And? Why does that matter?
It matters because the main app package contains resources for
whatever the default scale is. And for UWP, the default is 200. Since
I use app bundles, my Logo-100.png ended up in a satellite app
package, and the main package does not have any logo (since I didn't
provide the default 200). Hence, my app would not be installable on a
system that requires scale-200.
When I renamed the file to Logo.png, the editor complained because it
assumed that images without qualifiers were in the default scale
(200), and my logo didn't have the correct dimensions for that scale.
There is an explanation for this in the , but it is a
little buried:
"The default asset scale for Universal Windows apps is 200. If your
project includes assets not scaled at 200, you will need to add a
<UapDefaultAssetScale> element with the value of the scale of your
assets to this PropertyGroup. Learn more about assets and scales."
So what you need to do is either change your images to the correct scale and rename their suffix accordingly (e.g. scale-200), or change the default scale by opening the .csproj file in a text editor and following the instructions in the porting article linked in said blog post:
Find the <PropertyGroup> element that contains the
<TargetPlatformVersion> element. Do the
following steps for this <PropertyGroup> element
The default asset scale for Universal Windows apps is 200. If your
project includes assets not scaled at 200, you will need to add a
element with the value of the scale of your
assets to this PropertyGroup. Learn more about assets and scales. Now
your element should look similar to this example:
<PropertyGroup>
…
<TargetPlatformVersion>10.0.10240.0</TargetPlatformVersion>
…
<UapDefaultAssetScale>100</UapDefaultAssetScale>
…
</PropertyGroup>

I resolved it by removing .scale-100 for your Logos name.This works for me.

I resolved this by making sure I had separate image files for all scale sizes. (ie. .scale-100, .scale-140, .scale-240)

The default size is Scale 200. If you didn't include that image, Visual Studio notifies you of this. So include an image asset for Scale 200

I was able to solve this by ending the laziness. Delete all the images that you had setup, START COMPLETELY OVER, re-assign ALL images - all 3 images for each row- set them all. That's the only way you'll know for sure that you're good to go.

I solved the problem by changing the name of the logo in the AppManifest.
For example, if you had the error on the Store Logo in the Appmanifest ==> Store Logo ==> Store Logo : Assets/Store-Logo
Change it to Assets/Store-Logoooo
then also change Store Images in the main app.

For everyone.
From unity remove all windows icons (PLayer settings/Windows/Icons). [important]
Will problem
In Unity. Add Splash screens for windows [important]
In Visual Studio - generate manifest all images from standard tool. [important]
If you already have "Assets" folder - remove; And generate.
It only works like this.

In some case the solution of renaming the images in the assets folder doesn't work out.
In that case, you should set the "Generate App Bundle" option at "Never" and continue normally with the rest of the packaging procedure.
Though this is not a permanent solution, it is a good work-around and is pretty useful if you don't necessarily want App bundles for reducing size.
Sources : Personal experience of solving this error and searching the solution on-line and finding that it worked for other users as well : https://social.msdn.microsoft.com/Forums/en-US/3857fb9d-dbd5-4eb8-aa75-fe4c47f26875/wp81-universal-error-image-does-not-have-a-candidate-in-main-app-package-while-creating-a-package?forum=WindowsPhonePreviewSDK

Visual Studio 2022 (for a desktop app): added all images the required sizes, and still got this message. Solved it by first generating all images from a base image, using the "Generate" button. Then replaced the (awful and mis-scaled) results with my own versions. Then it worked. Apparently the form that allows you to add the images is not complete, or has a mismatch with what is actually required. First using the generate option circumvents trouble.

Related

Play button not working for #videogular/ngx-videogular v5.0.1

I upgraded my project's Angular version from 9 to 13 recently. Since videogular2 package is no longer supported with this version, I migrated the application to use #videogular/ngx-videogular and I exactly followed process for migration mentioned on the github page.
After migration, it appears my "Play video" button and controls like full screen, video scroll are missing. This is due to absence of class on the DOM. I compared other environments we have before changes and DOM looks a bit different. It doesn't have "vg-icon-play_arrow" on the DOM at all. This is how it looks -
We are maintaining local videogular.css and I see its already imported in style.scss which is correctly mentioned in Angular.json. I am not an expert in front end and not sure how can I find out why this is class "vg-icon-play_arrow" and flex is missing on "div" element "overlay-play-container"
Any suggestions on how to approach finding whats the problem? or what might be solution?
Here is how DOM looks
Note: I already tried using node_modules css which is recommended by #videogular/ngx-videogular by directly using in Angular.json instead of project videogular.css but it gives same results. Also all fonts files are latest as per recommendation

How to change helloworld project to my own in cocos2dx for windows phone 8

I am creating a cocos2dx game and i want to give it my own name and image path (mygame.exe). How do i do that? if i go and just change the image path in .xml file it builds the project but doesnt launch it on my device
Not quite sure what you mean by "image path". I wouldn't suggest messing with the project file though for this matter. You can change the image icon and tile in the WMAppManifest.xml by simply browsing for the image you want. In fact you can also change the "display name" of the app there as well. But you can change the entire projects name by renaming the project in the solution explorer.
EDIT
Sorry, in my hastiness I overlooked the fact that you are using a cocos2dx template. If the problem is the project does not launch try deploying it manually. Also try renaming the game in the solution explorer then change it in the manifest.

Chromium Browser Branding

I've been struggling all day trying to build Chromium and understand how branding works, but no luck with the later one.
The question is: how can I change the application name, logo and default search engine in the source files of Chromium ?
Got it:
On Chromium dev by James Atkinson
How to change Chromium app name and logo?
"What is the right place to change Chromium application name, program
title, .exe file name, and logo image. I guess there is place in
source code for windows, where it could be changed centralized for
whole project?"
There isn't a centralized place to change all at once. I'll advise you to go through .grd files search for .ico file an look at resources folder under chrome/browser/ it will give you a good start.
There are actually more places needs to be changed and I didn't found any doc describing the process.
There are some branding constants which are in the source itself, Like the folder name under app data which is embedded inside the code itself.

sprites - cache issue - especially on chrome

I have the following problem.
We have a site. I changed some sprites to make it look cooler. The thing is that we already have users and there is a big chance that their browser have the old images cached. Is there anyway to force a new request to images from them?
Note: On firefox (default settings) after some refreshes the new sprites are requested but seems like chrome (default settings) just doesn't request them unless you explicitly clear cache.
Another Note: One way would be to rename the sprites but this also means that we have to find them in css files and rename there also, etc. etc. etc.
Have a great day and ty for help.
One solution would be to add a random number onto the end of the image name e.g.
.mybackground {
background-image:url(../images/background.jpg?16549);
}
If you could make the number random every time the page is loaded via some JS or PHP or whatever that would work for you. YOu could maybe take the images out of your stylesheet and place then in a style tag in your header include or whatever so that you can do the random number bit to them. (Not sure if you could do directly into the stylesheet)
Renaming sounds more feasible. You can most likely automate it with (shell)scripts so it shouldn't be a too bad.
(Most IDE have a feature to find and replace in multiple files, you can use it to change the path to the sprite in the CSS files. Your best bet, is to give a new name for the new image for now.
As for later on, I suggest looking at your caching and expires headers of your web sever. (These are links to the Apache documentation, if your web server isn't apache, it would be same idea, but requires different implementation.)

IntelliJ: Specify per-project tab size

Is there a way to set the tab size in IntelliJ for a single file only, or at most for a single project?
I use a tab size of 3 for all my code; however, I'm collaborating on a project with an author who prefers a tab size of 4. Is there a way to set the tab size to 4 for only those files that are part of this project?
Open the Settings dialog by navigating to File->Settings. Under Project Settings [yourproject] on the left side of the dialog, navigate to Code Style->General. The Tab size is configurable on that pane, and the value you provide applies only to the project named yourproject.
for those who can't find project specific setting
press Command + , will give you the preference you need
You can set a global format for the project and "reformat code" to conform to each one's preferred style.
The problem will be your version control system. If you oil can back and forth between 3 and 4 spaces you'll never be able to see meaningful changes.
Best to settle on one standard and stick to it.
The idea of a private project isn't clear to me. It comes down to your version control system. If it's possible to check code in and out so that tab size doesn't affect commits, then I'd say you can be independent. If you share the common code by adding a compiled 3rd party JAR, then I'd say you can be independent.
This is not an exact answer to your problem, but IntelliJ can currently (4/2013) "only" handle per-language tab-settings, which is - to be honest - totally okay as language and file type are usually "the same". So this your solve your problem.
You can find the setting in File -> Settings -> Project Settings -> Code Style -> >YOUR LANGUAGE.