tapsellorg / TapsellPlusSDK-AndroidSample

16 stars 13 forks source link

[Unity] Gradle build failed , see the console for details #45

Closed Nafiseh216 closed 2 years ago

Nafiseh216 commented 2 years ago

بعد از اضافه کردن بکیج تپسل پلاس در یونیتی هنگام Build کردن خطای Gradle build failed , see the console for details نمایش داده می شود . در صورتی که بدون استفاده از پکیج پروژه بدون هیچ خطایی Build می شود. نسخه یونیتی مورد استفاده 2020.2.7f1 می باشد. لطفاً راهنمایی کنید.

mahdi-malv commented 2 years ago

سلام محتوای stderr[] رو که مربوط به خطای گریدل هست رو ارسال کنید که بدونیم خطا چی هست و چرا build به مشکل خورده با تشکر

Nafiseh216 commented 2 years ago

سلام سپاسگزارم error1 error2 error3-1 error3-2 error4

mahdi-malv commented 2 years ago

image مطابق این خطها دلیل بروز خطا ارور سینتکسی توی gradle نهایی هست لطفا بررسی کنید که چه خطی مشکل داره. خط داره میگه ... توی فایل هست که نباید باشه

Nafiseh216 commented 2 years ago

سلام روزتون بخیر

ممنون از راهنماییتون

Nafiseh216 commented 2 years ago

عذر میخواهم مجدد مزاحمتون شدم خطای قبلی برطرف شد ولی متاسفانه خطاهای زیر نمایش داده میشود.

error1 error2-1 error2-2 error3-1 error3-2 error3-3

mahdi-malv commented 2 years ago

سلام مجدد به نظر میرسه ۴۰۳ میخوره که پکیج‌ها دانلود نمیشن از شکن یا FOD (گیتهاب) یا یه وی‌پی‌ان که بتونه پکیج‌ها رو دانلود کنه استفاده کنید. سرورهای دانلود پکیج‌ها تحریم هستن

پ.ن: لطفا تا مشکلتون حل نشده ایشو رو تو وضعیت Open نگه دارید تا مطمئن شیم که مشکل حل و فصل شده. با تشکر

Nafiseh216 commented 2 years ago

با استفاده از شکن مجدد خطاهای زیر نمایش داده شد error1 error2 error3-1 error3-2

mahdi-malv commented 2 years ago

AndroidX: https://github.com/tapsellorg/TapsellPlusSDK-UnitySample2020/issues/7

Nafiseh216 commented 2 years ago

سلام مجدد ممنون از راهنماییتون

خطای قبلی برطرف شد ولی متاسفانه خطای زیر نمایش داده می شود .

از آخرین نسخه تپسل پلاس استفاده کردم.

CommandInvokationFailure: Gradle build failed. 
C:\Program Files\Java\jdk1.8.0_77\bin\java.exe -classpath "C:\gradle\gradle-6.9\lib\gradle-launcher-6.9.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"

stderr[

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':launcher:lintVitalRelease'.
> Could not resolve all artifacts for configuration ':launcher:debugRuntimeClasspath'.
   > Failed to transform play-services-ads-identifier-17.0.0.aar (com.google.android.gms:play-services-ads-identifier:17.0.0) to match attributes {artifactType=jar, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Could not find play-services-ads-identifier-17.0.0.aar (com.google.android.gms:play-services-ads-identifier:17.0.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-ads-identifier/17.0.0/play-services-ads-identifier-17.0.0.aar
   > Failed to transform play-services-basement-18.0.0.aar (com.google.android.gms:play-services-basement:18.0.0) to match attributes {artifactType=jar, org.gradle.status=release}.
      > Could not find play-services-basement-18.0.0.aar (com.google.android.gms:play-services-basement:18.0.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-basement/18.0.0/play-services-basement-18.0.0.aar
   > Failed to transform play-services-basement-18.0.0.aar (com.google.android.gms:play-services-basement:18.0.0) to match attributes {artifactType=jar, org.gradle.status=release}.
      > Could not find play-services-basement-18.0.0.aar (com.google.android.gms:play-services-basement:18.0.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-basement/18.0.0/play-services-basement-18.0.0.aar
   > Failed to transform play-services-basement-18.0.0.aar (com.google.android.gms:play-services-basement:18.0.0) to match attributes {artifactType=jar, org.gradle.status=release}.
      > Could not find play-services-basement-18.0.0.aar (com.google.android.gms:play-services-basement:18.0.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-basement/18.0.0/play-services-basement-18.0.0.aar
   > Failed to transform play-services-basement-18.0.0.aar (com.google.android.gms:play-services-basement:18.0.0) to match attributes {artifactType=jar, org.gradle.status=release}.
      > Could not find play-services-basement-18.0.0.aar (com.google.android.gms:play-services-basement:18.0.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-basement/18.0.0/play-services-basement-18.0.0.aar
   > Failed to transform play-services-basement-18.0.0.aar (com.google.android.gms:play-services-basement:18.0.0) to match attributes {artifactType=jar, org.gradle.status=release}.
      > Could not find play-services-basement-18.0.0.aar (com.google.android.gms:play-services-basement:18.0.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-basement/18.0.0/play-services-basement-18.0.0.aar
   > Failed to transform play-services-basement-18.0.0.aar (com.google.android.gms:play-services-basement:18.0.0) to match attributes {artifactType=jar, org.gradle.status=release}.
      > Could not find play-services-basement-18.0.0.aar (com.google.android.gms:play-services-basement:18.0.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-basement/18.0.0/play-services-basement-18.0.0.aar
   > Failed to transform play-services-basement-18.0.0.aar (com.google.android.gms:play-services-basement:18.0.0) to match attributes {artifactType=jar, org.gradle.status=release}.
      > Could not find play-services-basement-18.0.0.aar (com.google.android.gms:play-services-basement:18.0.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-basement/18.0.0/play-services-basement-18.0.0.aar
   > Failed to transform fragment-1.0.0.aar (androidx.fragment:fragment:1.0.0) to match attributes {artifactType=jar, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Could not find fragment-1.0.0.aar (androidx.fragment:fragment:1.0.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/fragment/fragment/1.0.0/fragment-1.0.0.aar
   > Failed to transform fragment-1.0.0.aar (androidx.fragment:fragment:1.0.0) to match attributes {artifactType=jar, org.gradle.status=release}.
      > Could not find fragment-1.0.0.aar (androidx.fragment:fragment:1.0.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/fragment/fragment/1.0.0/fragment-1.0.0.aar
   > Failed to transform fragment-1.0.0.aar (androidx.fragment:fragment:1.0.0) to match attributes {artifactType=jar, org.gradle.status=release}.
      > Could not find fragment-1.0.0.aar (androidx.fragment:fragment:1.0.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/fragment/fragment/1.0.0/fragment-1.0.0.aar
   > Failed to transform vectordrawable-animated-1.0.0.aar (androidx.vectordrawable:vectordrawable-animated:1.0.0) to match attributes {artifactType=jar, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Could not find vectordrawable-animated-1.0.0.aar (androidx.vectordrawable:vectordrawable-animated:1.0.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/vectordrawable/vectordrawable-animated/1.0.0/vectordrawable-animated-1.0.0.aar
   > Failed to transform exifinterface-1.2.0.aar (androidx.exifinterface:exifinterface:1.2.0) to match attributes {artifactType=jar, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Could not find exifinterface-1.2.0.aar (androidx.exifinterface:exifinterface:1.2.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/exifinterface/exifinterface/1.2.0/exifinterface-1.2.0.aar
   > Failed to transform legacy-support-core-ui-1.0.0.aar (androidx.legacy:legacy-support-core-ui:1.0.0) to match attributes {artifactType=jar, org.gradle.status=release}.
      > Could not find legacy-support-core-ui-1.0.0.aar (androidx.legacy:legacy-support-core-ui:1.0.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/legacy/legacy-support-core-ui/1.0.0/legacy-support-core-ui-1.0.0.aar
   > Failed to transform legacy-support-core-ui-1.0.0.aar (androidx.legacy:legacy-support-core-ui:1.0.0) to match attributes {artifactType=jar, org.gradle.status=release}.
      > Could not find legacy-support-core-ui-1.0.0.aar (androidx.legacy:legacy-support-core-ui:1.0.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/legacy/legacy-support-core-ui/1.0.0/legacy-support-core-ui-1.0.0.aar
   > Failed to transform legacy-support-core-utils-1.0.0.aar (androidx.legacy:legacy-support-core-utils:1.0.0) to match attributes {artifactType=jar, org.gradle.status=release}.
      > Could not find legacy-support-core-utils-1.0.0.aar (androidx.legacy:legacy-support-core-utils:1.0.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/legacy/legacy-support-core-utils/1.0.0/legacy-support-core-utils-1.0.0.aar
   > Failed to transform legacy-support-core-utils-1.0.0.aar (androidx.legacy:legacy-support-core-utils:1.0.0) to match attributes {artifactType=jar, org.gradle.status=release}.
      > Could not find legacy-support-core-utils-1.0.0.aar (androidx.legacy:legacy-support-core-utils:1.0.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/legacy/legacy-support-core-utils/1.0.0/legacy-support-core-utils-1.0.0.aar
   > Failed to transform loader-1.0.0.aar (androidx.loader:loader:1.0.0) to match attributes {artifactType=jar, org.gradle.status=release}.
      > Could not find loader-1.0.0.aar (androidx.loader:loader:1.0.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/loader/loader/1.0.0/loader-1.0.0.aar
   > Failed to transform loader-1.0.0.aar (androidx.loader:loader:1.0.0) to match attributes {artifactType=jar, org.gradle.status=release}.
      > Could not find loader-1.0.0.aar (androidx.loader:loader:1.0.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/loader/loader/1.0.0/loader-1.0.0.aar
   > Failed to transform lifecycle-viewmodel-2.0.0.aar (androidx.lifecycle:lifecycle-viewmodel:2.0.0) to match attributes {artifactType=jar, org.gradle.status=release}.
      > Could not find lifecycle-viewmodel-2.0.0.aar (androidx.lifecycle:lifecycle-viewmodel:2.0.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/lifecycle/lifecycle-viewmodel/2.0.0/lifecycle-viewmodel-2.0.0.aar
   > Failed to transform lifecycle-viewmodel-2.0.0.aar (androidx.lifecycle:lifecycle-viewmodel:2.0.0) to match attributes {artifactType=jar, org.gradle.status=release}.
      > Could not find lifecycle-viewmodel-2.0.0.aar (androidx.lifecycle:lifecycle-viewmodel:2.0.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/lifecycle/lifecycle-viewmodel/2.0.0/lifecycle-viewmodel-2.0.0.aar
   > Failed to transform vectordrawable-1.0.0.aar (androidx.vectordrawable:vectordrawable:1.0.0) to match attributes {artifactType=jar, org.gradle.status=release}.
      > Could not find vectordrawable-1.0.0.aar (androidx.vectordrawable:vectordrawable:1.0.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/vectordrawable/vectordrawable/1.0.0/vectordrawable-1.0.0.aar
   > Failed to transform viewpager-1.0.0.aar (androidx.viewpager:viewpager:1.0.0) to match attributes {artifactType=jar, org.gradle.status=release}.
      > Could not find viewpager-1.0.0.aar (androidx.viewpager:viewpager:1.0.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/viewpager/viewpager/1.0.0/viewpager-1.0.0.aar
   > Failed to transform coordinatorlayout-1.0.0.aar (androidx.coordinatorlayout:coordinatorlayout:1.0.0) to match attributes {artifactType=jar, org.gradle.status=release}.
      > Could not find coordinatorlayout-1.0.0.aar (androidx.coordinatorlayout:coordinatorlayout:1.0.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/coordinatorlayout/coordinatorlayout/1.0.0/coordinatorlayout-1.0.0.aar
   > Failed to transform drawerlayout-1.0.0.aar (androidx.drawerlayout:drawerlayout:1.0.0) to match attributes {artifactType=jar, org.gradle.status=release}.
      > Could not find drawerlayout-1.0.0.aar (androidx.drawerlayout:drawerlayout:1.0.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/drawerlayout/drawerlayout/1.0.0/drawerlayout-1.0.0.aar
   > Failed to transform slidingpanelayout-1.0.0.aar (androidx.slidingpanelayout:slidingpanelayout:1.0.0) to match attributes {artifactType=jar, org.gradle.status=release}.
      > Could not find slidingpanelayout-1.0.0.aar (androidx.slidingpanelayout:slidingpanelayout:1.0.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/slidingpanelayout/slidingpanelayout/1.0.0/slidingpanelayout-1.0.0.aar
   > Failed to transform customview-1.0.0.aar (androidx.customview:customview:1.0.0) to match attributes {artifactType=jar, org.gradle.status=release}.
      > Could not find customview-1.0.0.aar (androidx.customview:customview:1.0.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/customview/customview/1.0.0/customview-1.0.0.aar
   > Failed to transform customview-1.0.0.aar (androidx.customview:customview:1.0.0) to match attributes {artifactType=jar, org.gradle.status=release}.
      > Could not find customview-1.0.0.aar (androidx.customview:customview:1.0.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/customview/customview/1.0.0/customview-1.0.0.aar
   > Failed to transform customview-1.0.0.aar (androidx.customview:customview:1.0.0) to match attributes {artifactType=jar, org.gradle.status=release}.
      > Could not find customview-1.0.0.aar (androidx.customview:customview:1.0.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/customview/customview/1.0.0/customview-1.0.0.aar
   > Failed to transform customview-1.0.0.aar (androidx.customview:customview:1.0.0) to match attributes {artifactType=jar, org.gradle.status=release}.
      > Could not find customview-1.0.0.aar (androidx.customview:customview:1.0.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/customview/customview/1.0.0/customview-1.0.0.aar
   > Failed to transform customview-1.0.0.aar (androidx.customview:customview:1.0.0) to match attributes {artifactType=jar, org.gradle.status=release}.
      > Could not find customview-1.0.0.aar (androidx.customview:customview:1.0.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/customview/customview/1.0.0/customview-1.0.0.aar
   > Failed to transform swiperefreshlayout-1.0.0.aar (androidx.swiperefreshlayout:swiperefreshlayout:1.0.0) to match attributes {artifactType=jar, org.gradle.status=release}.
      > Could not find swiperefreshlayout-1.0.0.aar (androidx.swiperefreshlayout:swiperefreshlayout:1.0.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/swiperefreshlayout/swiperefreshlayout/1.0.0/swiperefreshlayout-1.0.0.aar
   > Failed to transform asynclayoutinflater-1.0.0.aar (androidx.asynclayoutinflater:asynclayoutinflater:1.0.0) to match attributes {artifactType=jar, org.gradle.status=release}.
      > Could not find asynclayoutinflater-1.0.0.aar (androidx.asynclayoutinflater:asynclayoutinflater:1.0.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/asynclayoutinflater/asynclayoutinflater/1.0.0/asynclayoutinflater-1.0.0.aar
   > Failed to transform core-1.2.0.aar (androidx.core:core:1.2.0) to match attributes {artifactType=jar, org.gradle.status=release}.
      > Could not find core-1.2.0.aar (androidx.core:core:1.2.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/core/core/1.2.0/core-1.2.0.aar
   > Failed to transform core-1.2.0.aar (androidx.core:core:1.2.0) to match attributes {artifactType=jar, org.gradle.status=release}.
      > Could not find core-1.2.0.aar (androidx.core:core:1.2.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/core/core/1.2.0/core-1.2.0.aar
   > Failed to transform core-1.2.0.aar (androidx.core:core:1.2.0) to match attributes {artifactType=jar, org.gradle.status=release}.
      > Could not find core-1.2.0.aar (androidx.core:core:1.2.0).
        Searched in the following locations:
            https://dl.google.com/dl/android/maven2/androidx/core/core/1.2.0/core-1.2.0.aar
   > Failed to transform core-1.2.0.aar (androidx.core:core:1.2.0) to match attributes {artifactType=jar, org.gradle.stat<message truncated>
MortezaNedaei commented 2 years ago

سلام. گریدل نتونسته فایل های مربوطه رو از این لینک ها دانلود کنه و به نظر میرسه که مشکل نتورک یا پراکسی داشته باشید. با وی پی ان مجدد بررسی کنید.

mahdi-malv commented 2 years ago

Closing. Please re-open if the issue still exists.