Announcement

Collapse
No announcement yet.

UE4.25 Android packaging error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    UE4.25 Android packaging error

    I decided to port my project to 4.25 from 4.24. I set up Android Studio and all that. But I'm getting this error when trying to package for Android(ETC2).
    I see that it's says some java modules are missing, but how do I fix this?

    Click image for larger version

Name:	Annotation 2020-05-18 110908.png
Views:	119
Size:	332.3 KB
ID:	1762935

    Log :

    Code:
    UATHelper: Packaging (Android (ETC2)): > Task :app:compileDebugJavaWithJavac
    UATHelper: Packaging (Android (ETC2)): Gradle may disable incremental compilation as the following annotation processors are not incremental: lifecycle-compiler-2.0.0.jar (androidx.lifecycle:lifecycle-compiler:2.0.0).
    UATHelper: Packaging (Android (ETC2)): Consider setting the experimental feature flag android.enableSeparateAnnotationProcessing=true in the gradle.properties file to run annotation processing in a separate task and make compilation incremental.
    UATHelper: Packaging (Android (ETC2)): Z:\app\src\main\java\com\epicgames\ue4\GameActivity.java:211: error: cannot find symbol
    UATHelper: Packaging (Android (ETC2)): import android.support.v4.app.NotificationManagerCompat;
    UATHelper: Packaging (Android (ETC2)): ^
    UATHelper: Packaging (Android (ETC2)): symbol: class NotificationManagerCompat
    UATHelper: Packaging (Android (ETC2)): location: package android.support.v4.app
    UATHelper: Packaging (Android (ETC2)): Z:\app\src\main\java\com\epicgames\ue4\GameActivity.java:212: error: package android.support.v4.content does not exist
    UATHelper: Packaging (Android (ETC2)): import android.support.v4.content.FileProvider;
    UATHelper: Packaging (Android (ETC2)): ^
    UATHelper: Packaging (Android (ETC2)): Z:\app\src\main\java\com\epicgames\ue4\network\NetworkChangedManager.java:25: error: cannot find symbol
    UATHelper: Packaging (Android (ETC2)): private Set<WeakReference<NetworkChangedListener>> networkChangedListeners = new HashSet<>();
    UATHelper: Packaging (Android (ETC2)): ^
    UATHelper: Packaging (Android (ETC2)): symbol: class NetworkChangedListener
    UATHelper: Packaging (Android (ETC2)): location: class NetworkChangedManager
    UATHelper: Packaging (Android (ETC2)): Z:\app\src\main\java\com\epicgames\ue4\network\NetworkChangedManager.java:84: error: cannot find symbol
    UATHelper: Packaging (Android (ETC2)): public boolean addListener(WeakReference<NetworkChangedListener> listener) {
    UATHelper: Packaging (Android (ETC2)): ^
    UATHelper: Packaging (Android (ETC2)): symbol: class NetworkChangedListener
    UATHelper: Packaging (Android (ETC2)): location: class NetworkChangedManager
    UATHelper: Packaging (Android (ETC2)): Z:\app\src\main\java\com\epicgames\ue4\network\NetworkChangedManager.java:89: error: cannot find symbol
    UATHelper: Packaging (Android (ETC2)): public boolean removeListener(WeakReference<NetworkChangedListener> listener) {
    UATHelper: Packaging (Android (ETC2)): ^
    UATHelper: Packaging (Android (ETC2)): symbol: class NetworkChangedListener
    UATHelper: Packaging (Android (ETC2)): location: class NetworkChangedManager
    UATHelper: Packaging (Android (ETC2)): Z:\app\src\main\java\com\epicgames\ue4\network\NetworkConnectivityClient.java:6: error: package android.support.annotation does not exist
    UATHelper: Packaging (Android (ETC2)): import android.support.annotation.NonNull;
    UATHelper: Packaging (Android (ETC2)): ^
    UATHelper: Packaging (Android (ETC2)):
    UATHelper: Packaging (Android (ETC2)): Z:\app\src\main\java\com\epicgames\ue4\network\NetworkConnectivityClient.java:15: error: cannot find symbol
    UATHelper: Packaging (Android (ETC2)): void initNetworkCallback(@NonNull Context context);
    UATHelper: Packaging (Android (ETC2)): ^
    UATHelper: Packaging (Android (ETC2)): symbol: class NonNull
    UATHelper: Packaging (Android (ETC2)): location: interface NetworkConnectivityClient
    UATHelper: Packaging (Android (ETC2)): 7 errors
    UATHelper: Packaging (Android (ETC2)): > Task :app:compileDebugJavaWithJavac FAILED
    PackagingResults: Error: cannot find symbol
    PackagingResults: Error: package android.support.v4.content does not exist
    PackagingResults: Error: cannot find symbol
    PackagingResults: Error: cannot find symbol
    PackagingResults: Error: cannot find symbol
    PackagingResults: Error: package android.support.annotation does not exist
    PackagingResults: Error: cannot find symbol
    UATHelper: Packaging (Android (ETC2)):
    UATHelper: Packaging (Android (ETC2)): FAILURE: Build failed with an exception.
    UATHelper: Packaging (Android (ETC2)):
    UATHelper: Packaging (Android (ETC2)): * What went wrong:
    UATHelper: Packaging (Android (ETC2)): Execution failed for task ':app:compileDebugJavaWithJavac'.
    UATHelper: Packaging (Android (ETC2)): > Compilation failed; see the compiler error output for details.
    UATHelper: Packaging (Android (ETC2)):
    UATHelper: Packaging (Android (ETC2)): * Try:
    UATHelper: Packaging (Android (ETC2)): Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    UATHelper: Packaging (Android (ETC2)):
    UATHelper: Packaging (Android (ETC2)): * Get more help at https://help.gradle.org
    UATHelper: Packaging (Android (ETC2)):
    UATHelper: Packaging (Android (ETC2)): BUILD FAILED in 35s
    UATHelper: Packaging (Android (ETC2)): 31 actionable tasks: 31 executed
    UATHelper: Packaging (Android (ETC2)): ERROR: cmd.exe failed with args /c "D:\UnrealEngine\2019\December\MobilePong 4.25\Intermediate\Android\armv7\gradle\rungradle.bat" :app:assembleDebug
    PackagingResults: Error: cmd.exe failed with args /c "D:\UnrealEngine\2019\December\MobilePong 4.25\Intermediate\Android\armv7\gradle\rungradle.bat" :app:assembleDebug
    UATHelper: Packaging (Android (ETC2)): Took 87.9822946s to run UnrealBuildTool.exe, ExitCode=6
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool failed. See log for more details. (C:\Users\UserName\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+UnrealEngine+UE_4.25\UBT-MobilePong-Android-Shipping_2.txt)
    UATHelper: Packaging (Android (ETC2)): AutomationTool exiting with ExitCode=6 (6)
    UATHelper: Packaging (Android (ETC2)): BUILD FAILED
    PackagingResults: Error: Unknown Error

    #2
    Looks like the problem was with a plugin I used. Removed the plugin. Now the Build is successful.

    Comment


      #3
      Hello,

      which plugin it was exactly? I have the same error and dont know how to fix it. Can you give me some suggestion?

      Thank you
      Last edited by Paxie_; 05-24-2020, 01:51 PM.

      Comment

      Working...
      X