Uploaded image for project: 'IoTivity'
  1. IoTivity
  2. IOT-1455

Failed to Build with TARGET_ARCH=x86_64 TARGET_OS=android

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Undecided
    • Resolution: Fixed
    • Affects Version/s: IoTivity 1.2.0
    • Fix Version/s: IoTivity 1.2.0
    • Component/s: Build System
    • Labels:
      None

      Description

      For Android with x86_64, build fails with this error:

      Error: duplicate files during packaging of APK /home/larrys/work/iotivity-master/iotivity/service/notification/examples/android/NotiConsumerExample/app/build/outputs/apk/app-debug-unaligned.apk
      Path in archive: lib/x86_64/libocstack-jni.so
      Origin 1: /home/larrys/work/iotivity-master/iotivity/service/notification/examples/android/NotiConsumerExample/app/build/intermediates/exploded-aar/iotivity-base-x86_64-release/jni/x86_64/libocstack-jni.so
      Origin 2: /home/larrys/work/iotivity-master/iotivity/service/notification/examples/android/NotiConsumerExample/app/build/intermediates/exploded-aar/iotivity-x86_64-notification-service-release/jni/x86_64/libocstack-jni.so
      You can ignore those files in your build.gradle:
      android {
      packagingOptions

      { exclude 'lib/x86_64/libocstack-jni.so' }

      }
      :app:packageDebug FAILED

      FAILURE: Build failed with an exception.

      • What went wrong:
        Execution failed for task ':app:packageDebug'.
        > Duplicate files copied in APK lib/x86_64/libocstack-jni.so
        File 1: /home/larrys/work/iotivity-master/iotivity/service/notification/examples/android/NotiConsumerExample/app/build/intermediates/exploded-aar/iotivity-base-x86_64-release/jni/x86_64/libocstack-jni.so
        File 2: /home/larrys/work/iotivity-master/iotivity/service/notification/examples/android/NotiConsumerExample/app/build/intermediates/exploded-aar/iotivity-x86_64-notification-service-release/jni/x86_64/libocstack-jni.so

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              abitha.s Abitha Shankar
              Reporter:
              ljsachs Larry Sachs
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: