نمایش نتایج 1 تا 3 از 3

نام تاپیک: خطا در اتمام پروژه

  1. #1

    خطا در اتمام پروژه

    با سلام

    من پروژم به اتمام رسیده . در زمان خروجی به صورت Build Bundle / APK و Generate Signed Bundle / APK و ساخت apk با یک ارور عجیب رو به رو هستم


    H:\User-APP\User1\app\build.gradle: Error: json defines classes that conflict with classes now provided by Android. Solutions include finding newer versions or alternative libraries that don't have the same problem (for example, for httpclient use HttpUrlConnection or okhttp instead), or repackaging the library using something like jarjar. [DuplicatePlatformClasses]


    Explanation for issues of type "DuplicatePlatformClasses":
    There are a number of libraries that duplicate not just functionality of
    the Android platform but using the exact same class names as the ones
    provided in Android -- for example the apache http classes. This can lead
    to unexpected crashes.


    To solve this, you need to either find a newer version of the library which
    no longer has this problem, or to repackage the library (and all of its
    dependencies) using something like the jarjar tool, or finally, rewriting
    the code to use different APIs (for example, for http code, consider using
    HttpUrlConnection or a library like okhttp).


    1 errors, 0 warnings


    > Task :app:lintVitalRelease FAILED


    FAILURE: Build failed with an exception.


    * What went wrong:
    Execution failed for task ':app:lintVitalRelease'.
    > Lint found fatal errors while assembling a release target.

    To proceed, either fix the issues identified by lint, or modify your build script as follows:
    ...
    android {
    lintOptions {
    checkReleaseBuilds false
    // Or, if you prefer, you can continue to check for errors in release builds,
    // but continue the build even when errors are found:
    abortOnError false
    }
    }
    ...


    * Try:
    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.


    * Get more help at https://help.gradle.org


    BUILD FAILED in 27s
    12 actionable tasks: 11 executed, 1 up-to-date






    لطفا راهنمایی کنید

    با تشکر

  2. #2

    نقل قول: خطا در اتمام پروژه

    گرید اصلی







    buildscript {

    repositories {
    google()
    jcenter()
    }
    dependencies {
    classpath 'com.android.tools.build:gradle:3.5.3'



    }
    }


    allprojects {
    repositories {
    maven{
    url "https://maven.google.com"
    }
    google()
    jcenter()
    maven{
    url 'https://repo.cedarmaps.com/android/'
    }


    }
    }


    task clean(type: Delete) {
    delete rootProject.buildDir
    }



  3. #3
    کاربر دائمی آواتار Nevercom
    تاریخ عضویت
    دی 1387
    محل زندگی
    بستک
    سن
    35
    پست
    1,118

    نقل قول: خطا در اتمام پروژه

    این خطا (همونطور که در متن خطا هم مشخصه) میگه که یه کتابخانه دارید که کلاس json رو با همون Namespace و نام کلاسی که در خود SDK اندروید هست پیاده سازی کرده. بگردید ببینید کدوم کتابخانه اینکار رو کرده و اون کتابخانه رو یا آپدیت کنید یا با یه کتابخانه دیگه جایگزین کنید.

قوانین ایجاد تاپیک در تالار

  • شما نمی توانید تاپیک جدید ایجاد کنید
  • شما نمی توانید به تاپیک ها پاسخ دهید
  • شما نمی توانید ضمیمه ارسال کنید
  • شما نمی توانید پاسخ هایتان را ویرایش کنید
  •