x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Constructing a ReceiptProperty object is deprecated

Hello,

I'm running out of ideas. Turning out to the community for some help.

Migrating to 4.20 from 4.19, I am getting this error for my Android manifest:

 'UnrealBuildTool.ModuleRules.ReceiptPropertyList.Add(UnrealBuildTool.ReceiptProperty)' is obsolete: 'Constructing a ReceiptProperty object is deprecated. Call ReceiptProperties.Add() with the path to the file to stage.'

The original code in the build manifest is:

 string PluginPath = Utils.MakePathRelativeTo(ModuleDirectory, Target.RelativeEnginePath);
 AdditionalPropertiesForReceipt.Add(new ReceiptProperty("AndroidPlugin", Path.Combine(PluginPath, "AndroidManifest_UPL.xml")));

When I replace this code with the suggestion from the compiler, I get:

 error CS0103: The name 'ReceiptProperties' does not exist in the current context

I can't make sense of this error and could not find related documentation. Any hint would be much appreciated.

Fen

Product Version: UE 4.20
Tags:
more ▼

asked Aug 07 '18 at 02:32 AM in C++ Programming

avatar image

F3NR1S
132 7 15 18

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hi Fen,

I just hit this one myself. Looking at the API, it seems they've just made a new two argument add function, which internally constructs the ReceiptProperty. So all you should need to do is drop the ReceptProperty construction, giving the arguments you gave to the construction to the Add function instead.

i.e. AdditionalPropertiesForReceipt.Add("AndroidPlugin", Path.Combine(PluginPath, "AndroidManifest_UPL.xml"));

Cheers,

Alan.

more ▼

answered Aug 26 '18 at 12:15 AM

avatar image

skyphyr
174 3 62 15

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question