Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Anonymous's avatar
Anonymous
7 years ago

Can't built on UE4.21.1 with Oculus 1.3.2 github

Hello, I wanted to update Unreal project from 4.19 to 4.21 and I facing some wierd issues:

UATHelper: Packaging (Android (ETC2)): C:\Users\hello\.gradle\caches\transforms-1\files-1.1\support-compat-27.1.0.aar\91d8725fb716b1145270400a7aae842d\res\values\values.xml:20:5-70: AAPT: error: resource android:attr/fontStyle not found.
UATHelper: Packaging (Android (ETC2)): C:\Users\hello\.gradle\caches\transforms-1\files-1.1\support-compat-27.1.0.aar\91d8725fb716b1145270400a7aae842d\res\values\values.xml:20:5-70: AAPT: error: resource android:attr/font not found.
UATHelper: Packaging (Android (ETC2)): C:\Users\hello\.gradle\caches\transforms-1\files-1.1\support-compat-27.1.0.aar\91d8725fb716b1145270400a7aae842d\res\values\values.xml:20:5-70: AAPT: error: resource android:attr/fontWeight not found.
UATHelper: Packaging (Android (ETC2)): Z:\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:94: error: resource android:attr/fontStyle not found.
UATHelper: Packaging (Android (ETC2)): Z:\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:94: error: resource android:attr/font not found.
UATHelper: Packaging (Android (ETC2)): Z:\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:94: error: resource android:attr/fontWeight not found.
UATHelper: Packaging (Android (ETC2)): error: failed linking references.


then it goes to these errors:
UATHelper: Packaging (Android (ETC2)): Caused by: java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details


UATHelper: Packaging (Android (ETC2)): Caused by: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details


UATHelper: Packaging (Android (ETC2)): Caused by: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details

UATHelper: Packaging (Android (ETC2)): ERROR: cmd.exe failed with args /c "H:\ProjectsOngoing\VR\UE4devs\GVR_02\Intermediate/Android/APK\gradle\rungradle.bat" :app:assembleDebug


PackagingResults: Error: Unknown Error



6 Replies

Replies have been turned off for this discussion
  • Anonymous's avatar
    Anonymous

    I have just downloaded new Codeworks from Nvidia website and it's only comes with r15c,
    Where did you see r17b? Maybe I miss something?

  • I never used Nvidia codeworks. I always used Android Studio and Android NDK, downloaded from here https://developer.android.com/ndk/downloads/

    If you go to archives, you'll see there is r15, r16 and r17
  • Anonymous's avatar
    Anonymous
    but Unreal Engine recommends to use Nvidia Codeworks, it's even comes with Unreal Engine/Extras installation.
  • Well, doesn't matter what they recommend. I always had issues using Codeworks and never had issues using Android SDK/NDK from Google directly. 

    Most likely it's Gradle's issue. I had the same error "resource android:attr/fontStyle not found". I simply updated my SDKs to the latest ones (using Android Studio, so that I have all SDKs from 19 up to 28), updated my NDK, installed Gradle manually (instructions are pretty clear on how to do it) and installed latest JDK (_192 I believe). After that everything worked just fine.
  • Anonymous's avatar
    Anonymous
    I've installed r18b, it did not work, then I switched to the default r15c, something has compiled, but it is complaining about OSIC file, but I added the file, I did it with two different phoens and neither of them was able to install the application, both stuch on 15% and then showed an error. Why?

    ed