无法从jar文件夹android openui导入RecyclerView

2020-09-16 20:07发布

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


专家您好,

我想在我的开发中使用RecyclerView,但它不从jar文件夹中导入

我试图将其添加到Gradle的外部,它给出了如下错误

Information:Gradle任务[:SAP:Mobile:Platform:android:AgentryAndroidClientSolution:assembleConsDebug]错误:未捕获的翻译错误:java.lang.IllegalArgumentException:已添加:Landroid/support/v4/app/ActionBarDrawerToggle; 错误:未捕获的翻译错误:java.lang.IllegalArgumentException:已添加:Landroid/support/v4/app/ActionBarDrawerToggle $ ActionBarDrawerToggleImpl; 错误:未捕获的翻译错误:java.lang.IllegalArgumentException:已添加:Landroid/support/v4/app/ActionBarDrawerToggle $ ActionBarDrawerToggleImplBase; 错误:未捕获的翻译错误:java.lang.IllegalArgumentException:已添加:Landroid/support/v4/app/ActionBarDrawerToggle $ ActionBarDrawerToggleImplHC; 错误:未捕获的翻译错误:java.lang.IllegalArgumentException:已添加:Landroid/support/v4/app/ActionBarDrawerToggle $ ActionBarDrawerToggleImplJellybeanMR2; 错误:未捕获的翻译错误:java.lang.IllegalArgumentException:已添加:Landroid/support/v4/app/ActionBarDrawerToggle $ Delegate; 错误:未捕获的翻译错误:java.lang.IllegalArgumentException:已添加:Landroid/support/v4/app/ActionBarDrawerToggle $ DelegateProvider; 错误:未捕获的翻译错误:java.lang.IllegalArgumentException:已添加:Landroid/support/v4/app/ActionBarDrawerToggle $ SlideDrawable; 错误:未捕获的翻译错误:java.lang.IllegalArgumentException:已添加:Landroid/support/v4/view/AbsSavedState; 错误:将字节码转换为dex时出错:原因:java.lang.RuntimeException:翻译被中断错误:任务':SAP:Mobile:Platform:android:AgentryAndroidClientSolution:transformClassesWithDexForConsDebug'的执行失败。 > com.android.build.api.transform.TransformException:com.android.ide.common.process.ProcessException:java.util.concurrent.ExecutionException:com.android.ide.common.process.ProcessException:执行Java进程时出错 使用主类com.android.dx.command.Main和参数{--dex --num-threads = 4 --multi-dex --output C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70。 16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ build \ intermediates \ transforms \ dex \ cons \ debug \ folders \ 1000 \ 1f \ main C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ libs \ appcompat-v7-23.1.1.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ libs \ ClientLog-3.9.0.jar C:\ Users \ Nikhil.PV \ AppData \ Local \ Android \ Sdk3 \ Sdk \ extras \ android \ m2repository \ com \ android \ support \ support-annotations \ 25.3.1 \ support- 注解25.3.1.jar C:\ Users \ Nikhil.P V \ .android \ build-cache \ 049055e8f0994f6aeefce905001e83213216ad89 \ output \ jars \ classes.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ build \ intermediates \ classes \ cons \ debug C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ libs \ javalibrary-70.16.06.jar C:\ Users \ Nikhil .PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ libs \ sap-e2etrace-2.3.3.13.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70 .16.06 \ vendor \ OpenIntents \ distribution \ svn-01042013 \ build \ intermediates \ bundles \ default \ classes.jar C:\ Users \ Nikhil.PV \ .android \ build-cache \ 04ef06d143e56ca74a4133ed14f74e7c60142f2a \ output \ jars \ classes.jar C :\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ libs \ mafuicomponents-1.205.0-sap-05.jar C:\ Use rs \ Nikhil.PV \ .android \ build-cache \ 9c1cb86203661014fe36cfa4dd43c804bc261b43 \ output \ jars \ classes.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ libs \ AgentryAndroidClient-70.16.06-70.16.06.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientResources \ build \ intermediates \ bundles \ default \ classes.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ vendor \ zxing \ android \ zxing-android \ build \ intermediates \ bundles \ default \ classes.jar C:\ Users \ Nikhil .PV \ .android \ build-cache \ 1cee7bbafe3a3f38a37bab108985b37c7a55a39c \ output \ jars \ classes.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ lib Common-3.9.0.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ vendor \ android-support-v7-appcompat \ build \ intermediates \ bundles \ default \ classes.jar C:\ Users \ Nikhil.PV \ .android \ build-cache \ 85f630b1fb436d6b248eed105c2d4eb08110f2d4 \ output \ jars \ classes.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ libs \ maflogger-1.205.0-sap-05.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ libs \ mafformatters- 1.205.0-sap-05.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ libs \ simple-xml-2.7.1.jar C :\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ libs \ design-23.1.1.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager- poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ libs \ AgentryCore-70.16.06.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSo lution \ libs \ E2ETrace-3.9.0.jar C:\ Users \ Nikhil.PV \ .android \ build-cache \ 0cc2fe8dc4ac904b28442ac15ba90e3f470b72bb \ output \ jars \ classes.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ vendor \ android-support-design \ build \ intermediates \ bundles \ default \ classes.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ libs \ libphonenumber-5.2.jar C:\ Users \ Nikhil.PV \ .android \ build-cache \ 804b2ba2c7881f2acc84b199df8259e6b6972bf4 \ output \ jars \ classes.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc AndroidClient_70.16.06 \ vendor \ Codeus \ DateSliderProject \ build \ intermediates \ bundles \ default \ classes.jar C:\ Users \ Nikhil.PV \ .android \ build-cache \ de7e7f4ee6c0a5f04277cc615ce4ab24b8457187 \ output \ jars \ classes.jar C:\ Users \ Nikhil.PV \ .android \ build-cache \ 3a65d2297b64ae252af91dfc93508f549d201cf5 \ output \ jars \ classes.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ vendor \ MAF \ Android \ MAF_Controls_RE S_Files_1.2.0 \ build \ intermediates \ bundles \ default \ classes.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ libs \ android-support- v2-r4285.jar C:\ Users \ Nikhil.PV \ .android \ build-cache \ 5d89017147188b4be9bdfed2c7356558ad81cfae \ output \ jars \ classes.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ libs \ maflocaleawarecontrols-1.205.0-sap-05.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ vendor \ Polidea \ tree-view-list -android \ build \ intermediates \ bundles \ default \ classes.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ vendor \ OpenIntents \ filemanager \ svn-01042013 \ build \ intermediates \ bundles \ default \\ classes.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ libs \ SupportabilityFacade-3.9.0.jar C:\ Users \ Nikhil.PV \文件 s \ workmanager-poc \ AndroidClient_70.16.06 \ vendor \ zxing \ android \ zxing-android \ build \ intermediates \ bundles \ default \ libs \ core-2.0.jar C:\ Users \ Nikhil.PV \ .android \ build-cache \ 5d89017147188b4be9bdfed2c7356558ad81cfae \ output \ jars \ libs \ internal_impl-24.0.0.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ calantAndroidClientSolution \ libs。 .0-sap-05.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ libs \ support-v4-23.1.1.jar C: \ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ vendor \ google-android-api \ build \ intermediates \ bundles \ default \ classes.jar}信息:未通过信息:总时间:1分钟4.727秒 信息:11错误信息:0警告信息:请参阅控制台中的完整输出

我使用了SAP Android代码版本-SMPAgentryClientFramework-Android-70.16.06

我需要一个示例,说明如何在android openui代码中导入以下视图

"导入android.support.v7.widget.LinearLayoutManager

导入android.support.v7.widget.RecyclerView"

下面是我的gradle文件

应用插件:'com.android.application'def _applicationId ='com.it.agentry.workmanager'依赖项{编译fileTree(include:'* .jar',dir:'libs')编译项目(':SAP :Mobile:Platform:android:AgentryAndroidClientResources')编译项目(':vendor:zxing:android:zxing-android')编译项目(':vendor:MAF:Android:MAF_Controls_RES_Files_1.2.0')编译项目(':vendor:OpenIntents :filemanager:svn-01042013')编译'com.android.support:multidex:1.0.1'编译'com.android.support:recyclerview-v7:25.3.1'} android {compileSdkVersion rootProject.ext.compileSdkVersion buildToolsVersion rootProject。 ext.buildToolsVersion dexOptions {preDexLibraries = false//您可以为dex进程javaMaxHeapSize" 4g"指定堆大小。defaultConfig {vectorDrawables.useSupportLibrary = true applicationId" $ {_ applicationId}" minSdkVersion 23 targetSdkVersion 23 testInstrumentationRunner" android.support.test。" .runner.AndroidJUnitRunner" ndk {abiFilters" armeabi-v7a"," x86"} multiDexEn 正确true} sourceSets {main {manifest.srcFile'AndroidManifest.xml'java.srcDirs = ['src'] resources.srcDirs = ['src'] aidl.srcDirs = ['src'] renderscript.srcDirs = ['src' ] res.srcDirs = ['res'] asset.srcDirs = ['assets'] jniLibs.srcDirs = ['jniLibs']}//将测试移至tests/java,测试/res等... instrumentTest.setRoot ("测试")} compileOptions {sourceCompatibility JavaVersion.VERSION_1_7 targetCompatibility JavaVersion.VERSION_1_7} lintOptions {abortOnError rootProject.ext.lintAbortOnError} signingConfigs {release {storeFile file(" localSigningKeystore-1.0.0.jks")storePassword" localSigningPasss " keyPassword" localSigningPassword"} debug {//keyAlias'testAlias'//keyPassword'testPassword'//storeFile file('testStoreFile')//storePassword'testStorePass'}} buildTypes {release {minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android .txt'),' proguard-r ules.pro '可调试的true signingConfig signingConfigs.release}调试{可调试的true signingConfig signingConfigs.debug}} productFlavors {cons {versionName" -cons" applicationId" com.it.poc.cons"//signingConfig signingConfigs.debug } prod {versionName" -prod" applicationId" com.it.poc.dev"//signingConfig signingConfigs.debug}} productFlavors.all {applicationVariants.all {variant-> variant.outputs.each {output-> output.outputFile = 新File(output.outputFile.parent,output.outputFile.name.replace("。apk","-$ {variant.versionName} .apk"))}}}

任何人都可以帮助我解决问题。

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


专家您好,

我想在我的开发中使用RecyclerView,但它不从jar文件夹中导入

我试图将其添加到Gradle的外部,它给出了如下错误

Information:Gradle任务[:SAP:Mobile:Platform:android:AgentryAndroidClientSolution:assembleConsDebug]错误:未捕获的翻译错误:java.lang.IllegalArgumentException:已添加:Landroid/support/v4/app/ActionBarDrawerToggle; 错误:未捕获的翻译错误:java.lang.IllegalArgumentException:已添加:Landroid/support/v4/app/ActionBarDrawerToggle $ ActionBarDrawerToggleImpl; 错误:未捕获的翻译错误:java.lang.IllegalArgumentException:已添加:Landroid/support/v4/app/ActionBarDrawerToggle $ ActionBarDrawerToggleImplBase; 错误:未捕获的翻译错误:java.lang.IllegalArgumentException:已添加:Landroid/support/v4/app/ActionBarDrawerToggle $ ActionBarDrawerToggleImplHC; 错误:未捕获的翻译错误:java.lang.IllegalArgumentException:已添加:Landroid/support/v4/app/ActionBarDrawerToggle $ ActionBarDrawerToggleImplJellybeanMR2; 错误:未捕获的翻译错误:java.lang.IllegalArgumentException:已添加:Landroid/support/v4/app/ActionBarDrawerToggle $ Delegate; 错误:未捕获的翻译错误:java.lang.IllegalArgumentException:已添加:Landroid/support/v4/app/ActionBarDrawerToggle $ DelegateProvider; 错误:未捕获的翻译错误:java.lang.IllegalArgumentException:已添加:Landroid/support/v4/app/ActionBarDrawerToggle $ SlideDrawable; 错误:未捕获的翻译错误:java.lang.IllegalArgumentException:已添加:Landroid/support/v4/view/AbsSavedState; 错误:将字节码转换为dex时出错:原因:java.lang.RuntimeException:翻译被中断错误:任务':SAP:Mobile:Platform:android:AgentryAndroidClientSolution:transformClassesWithDexForConsDebug'的执行失败。 > com.android.build.api.transform.TransformException:com.android.ide.common.process.ProcessException:java.util.concurrent.ExecutionException:com.android.ide.common.process.ProcessException:执行Java进程时出错 使用主类com.android.dx.command.Main和参数{--dex --num-threads = 4 --multi-dex --output C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70。 16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ build \ intermediates \ transforms \ dex \ cons \ debug \ folders \ 1000 \ 1f \ main C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ libs \ appcompat-v7-23.1.1.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ libs \ ClientLog-3.9.0.jar C:\ Users \ Nikhil.PV \ AppData \ Local \ Android \ Sdk3 \ Sdk \ extras \ android \ m2repository \ com \ android \ support \ support-annotations \ 25.3.1 \ support- 注解25.3.1.jar C:\ Users \ Nikhil.P V \ .android \ build-cache \ 049055e8f0994f6aeefce905001e83213216ad89 \ output \ jars \ classes.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ build \ intermediates \ classes \ cons \ debug C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ libs \ javalibrary-70.16.06.jar C:\ Users \ Nikhil .PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ libs \ sap-e2etrace-2.3.3.13.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70 .16.06 \ vendor \ OpenIntents \ distribution \ svn-01042013 \ build \ intermediates \ bundles \ default \ classes.jar C:\ Users \ Nikhil.PV \ .android \ build-cache \ 04ef06d143e56ca74a4133ed14f74e7c60142f2a \ output \ jars \ classes.jar C :\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ libs \ mafuicomponents-1.205.0-sap-05.jar C:\ Use rs \ Nikhil.PV \ .android \ build-cache \ 9c1cb86203661014fe36cfa4dd43c804bc261b43 \ output \ jars \ classes.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ libs \ AgentryAndroidClient-70.16.06-70.16.06.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientResources \ build \ intermediates \ bundles \ default \ classes.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ vendor \ zxing \ android \ zxing-android \ build \ intermediates \ bundles \ default \ classes.jar C:\ Users \ Nikhil .PV \ .android \ build-cache \ 1cee7bbafe3a3f38a37bab108985b37c7a55a39c \ output \ jars \ classes.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ lib Common-3.9.0.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ vendor \ android-support-v7-appcompat \ build \ intermediates \ bundles \ default \ classes.jar C:\ Users \ Nikhil.PV \ .android \ build-cache \ 85f630b1fb436d6b248eed105c2d4eb08110f2d4 \ output \ jars \ classes.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ libs \ maflogger-1.205.0-sap-05.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ libs \ mafformatters- 1.205.0-sap-05.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ libs \ simple-xml-2.7.1.jar C :\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ libs \ design-23.1.1.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager- poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ libs \ AgentryCore-70.16.06.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSo lution \ libs \ E2ETrace-3.9.0.jar C:\ Users \ Nikhil.PV \ .android \ build-cache \ 0cc2fe8dc4ac904b28442ac15ba90e3f470b72bb \ output \ jars \ classes.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ vendor \ android-support-design \ build \ intermediates \ bundles \ default \ classes.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ libs \ libphonenumber-5.2.jar C:\ Users \ Nikhil.PV \ .android \ build-cache \ 804b2ba2c7881f2acc84b199df8259e6b6972bf4 \ output \ jars \ classes.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc AndroidClient_70.16.06 \ vendor \ Codeus \ DateSliderProject \ build \ intermediates \ bundles \ default \ classes.jar C:\ Users \ Nikhil.PV \ .android \ build-cache \ de7e7f4ee6c0a5f04277cc615ce4ab24b8457187 \ output \ jars \ classes.jar C:\ Users \ Nikhil.PV \ .android \ build-cache \ 3a65d2297b64ae252af91dfc93508f549d201cf5 \ output \ jars \ classes.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ vendor \ MAF \ Android \ MAF_Controls_RE S_Files_1.2.0 \ build \ intermediates \ bundles \ default \ classes.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ libs \ android-support- v2-r4285.jar C:\ Users \ Nikhil.PV \ .android \ build-cache \ 5d89017147188b4be9bdfed2c7356558ad81cfae \ output \ jars \ classes.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ libs \ maflocaleawarecontrols-1.205.0-sap-05.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ vendor \ Polidea \ tree-view-list -android \ build \ intermediates \ bundles \ default \ classes.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ vendor \ OpenIntents \ filemanager \ svn-01042013 \ build \ intermediates \ bundles \ default \\ classes.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ libs \ SupportabilityFacade-3.9.0.jar C:\ Users \ Nikhil.PV \文件 s \ workmanager-poc \ AndroidClient_70.16.06 \ vendor \ zxing \ android \ zxing-android \ build \ intermediates \ bundles \ default \ libs \ core-2.0.jar C:\ Users \ Nikhil.PV \ .android \ build-cache \ 5d89017147188b4be9bdfed2c7356558ad81cfae \ output \ jars \ libs \ internal_impl-24.0.0.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ calantAndroidClientSolution \ libs。 .0-sap-05.jar C:\ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ SAP \ Mobile \ Platform \ android \ AgentryAndroidClientSolution \ libs \ support-v4-23.1.1.jar C: \ Users \ Nikhil.PV \ Documents \ workmanager-poc \ AndroidClient_70.16.06 \ vendor \ google-android-api \ build \ intermediates \ bundles \ default \ classes.jar}信息:未通过信息:总时间:1分钟4.727秒 信息:11错误信息:0警告信息:请参阅控制台中的完整输出

我使用了SAP Android代码版本-SMPAgentryClientFramework-Android-70.16.06

我需要一个示例,说明如何在android openui代码中导入以下视图

"导入android.support.v7.widget.LinearLayoutManager

导入android.support.v7.widget.RecyclerView"

下面是我的gradle文件

应用插件:'com.android.application'def _applicationId ='com.it.agentry.workmanager'依赖项{编译fileTree(include:'* .jar',dir:'libs')编译项目(':SAP :Mobile:Platform:android:AgentryAndroidClientResources')编译项目(':vendor:zxing:android:zxing-android')编译项目(':vendor:MAF:Android:MAF_Controls_RES_Files_1.2.0')编译项目(':vendor:OpenIntents :filemanager:svn-01042013')编译'com.android.support:multidex:1.0.1'编译'com.android.support:recyclerview-v7:25.3.1'} android {compileSdkVersion rootProject.ext.compileSdkVersion buildToolsVersion rootProject。 ext.buildToolsVersion dexOptions {preDexLibraries = false//您可以为dex进程javaMaxHeapSize" 4g"指定堆大小。defaultConfig {vectorDrawables.useSupportLibrary = true applicationId" $ {_ applicationId}" minSdkVersion 23 targetSdkVersion 23 testInstrumentationRunner" android.support.test。" .runner.AndroidJUnitRunner" ndk {abiFilters" armeabi-v7a"," x86"} multiDexEn 正确true} sourceSets {main {manifest.srcFile'AndroidManifest.xml'java.srcDirs = ['src'] resources.srcDirs = ['src'] aidl.srcDirs = ['src'] renderscript.srcDirs = ['src' ] res.srcDirs = ['res'] asset.srcDirs = ['assets'] jniLibs.srcDirs = ['jniLibs']}//将测试移至tests/java,测试/res等... instrumentTest.setRoot ("测试")} compileOptions {sourceCompatibility JavaVersion.VERSION_1_7 targetCompatibility JavaVersion.VERSION_1_7} lintOptions {abortOnError rootProject.ext.lintAbortOnError} signingConfigs {release {storeFile file(" localSigningKeystore-1.0.0.jks")storePassword" localSigningPasss " keyPassword" localSigningPassword"} debug {//keyAlias'testAlias'//keyPassword'testPassword'//storeFile file('testStoreFile')//storePassword'testStorePass'}} buildTypes {release {minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android .txt'),' proguard-r ules.pro '可调试的true signingConfig signingConfigs.release}调试{可调试的true signingConfig signingConfigs.debug}} productFlavors {cons {versionName" -cons" applicationId" com.it.poc.cons"//signingConfig signingConfigs.debug } prod {versionName" -prod" applicationId" com.it.poc.dev"//signingConfig signingConfigs.debug}} productFlavors.all {applicationVariants.all {variant-> variant.outputs.each {output-> output.outputFile = 新File(output.outputFile.parent,output.outputFile.name.replace("。apk","-$ {variant.versionName} .apk"))}}}

任何人都可以帮助我解决问题。

付费偷看设置
发送
1条回答
四川大学会员
1楼-- · 2020-09-16 20:35

Nikhil,

错误:未捕获的翻译错误:java.lang.IllegalArgumentException:已添加:-确保不多次包含同一库。

为了避免与Dex冲突,模块中的文件应具有唯一的包名称/路径。

-斯里拉姆

一周热门 更多>