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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

mContentTitle is not public in Builder; cannot be accessed from outside package

Some background:

I've inherited a VR project for Daydream/Gear, and the previous team had been running a modified version of UE4.16 with GoogleVR 1.6 integration, mostly to add a few functionalities that UE could not do. One of the modifications they had also done was to modify packaging to use gradle instead of Ant. As UE has their own implementation of gradle starting in 4.17, I decided best to try to use that from now on. I am still new to this however, and while I managed to figure out most of the issues so far, this one seems to have me stuck.

Error:

 UATHelper: Packaging (Android (ETC2)): Z:\app\src\main\java\com\google\android\vending\expansion\downloader\impl\V4CustomNotificationBuilder.java:69: error: mContentTitle is not public in Builder; cannot be accessed from outside package
 UATHelper: Packaging (Android (ETC2)):         expandedView.setTextViewText(R.id.title, mContentTitle);
 UATHelper: Packaging (Android (ETC2)):                                                  ^

As far as I can tell, it's trying to access mContentTitle from NotificationCompat.Builder, which, I believe comes from com.android.support:support-v4

In our APK/gradle/app/build.gradle file, we have

 compile 'com.android.support:support-v4:+'

This however does not seem to cause issues in our 4.16 version, and https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Builder.html appears to indicate there is no mContentTitle attribute that is publically available. It also seems that the offending line is present from the 4.16 version through to the 4.18 version, including the versions downloaded from Epic's Game Launcher (yet attempting to package an example project did not cause issue, so evidently there is something about our version that is amiss).

Ultimately, I'm attempting to transition from all the manual modifications of the previous team to the nice programmatic approach that Epic took, but it's giving me plenty of headaches.

Product Version: UE 4.17
Tags:
more ▼

asked Dec 20 '17 at 09:24 PM in Packaging & Deployment

avatar image

Armel C
1 1 1 3

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

0 answers: sort voted first
Be the first one to answer this question
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