android – 用新的kotlin 1.1构建错误,kapt不能解析数据绑定参数

android – 用新的kotlin 1.1构建错误,kapt不能解析数据绑定参数,第1张

概述我将我的项目从 android studio 2.2更新到android studio 2.3,并将项目从kotlin 1.06增加到kotlin 1.1 这是我得到的错误 :app:javaPreCompileDebug:app:transformClassesAndDataBindingWithDataBindingMergeArtifactsForDebug UP-TO-DATE:app 我将我的项目从 android studio 2.2更新到androID studio 2.3,并将项目从kotlin 1.06增加到kotlin 1.1

这是我得到的错误

:app:java@R_441_3013@eBUG:app:transformClassesAndDataBindingWithDataBindingMergeArtifactsForDeBUG UP-TO-DATE:app:compileDeBUGKotlinw: The '-d' option with a directory destination is ignored because '-module' is specifIEd:app:compileDeBUGJavaWithJavacProcessor path was modifIEd by kapt. PrevIoUs value = /home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jre7/1.1.0/ef03cfed144ff47eed2cab1f7be4381bc18a6237/kotlin-stdlib-jre7-1.1.0.jar:/home/harisvsulaiman/androID-studio/gradle/m2repository/commons-io/commons-io/2.4/commons-io-2.4.jar:/home/harisvsulaiman/androID-studio/gradle/m2repository/com/androID/databinding/compilerCommon/2.3.0/compilerCommon-2.3.0.jar:/home/harisvsulaiman/androID-studio/gradle/m2repository/commons-codec/commons-codec/1.10/commons-codec-1.10.jar:/home/harisvsulaiman/Sdk/extras/m2repository/com/androID/support/constraint/constraint-layout-solver/1.0.1/constraint-layout-solver-1.0.1.jar:/home/harisvsulaiman/androID-studio/gradle/m2repository/com/Google/guava/guava/17.0/guava-17.0.jar:/home/harisvsulaiman/Sdk/extras/androID/m2repository/com/androID/support/support-annotations/25.2.0/support-annotations-25.2.0.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.1.0/96a07041a11a09cf578892932d7511e1e11e3b6c/kotlin-stdlib-1.1.0.jar:/home/harisvsulaiman/androID-studio/gradle/m2repository/com/androID/databinding/baselibrary/2.3.0/baselibrary-2.3.0.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/com.airbnb.androID/epoxy-annotations/1.7.5/509abda14719aa31f55123c9a757bdadc8f45818/epoxy-annotations-1.7.5.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/io.realm/realm-annotations-processor/3.0.0/61c2ac9e7a068736558e69d585cfa777b35058b2/realm-annotations-processor-3.0.0.jar:/home/harisvsulaiman/androID-studio/gradle/m2repository/com/androID/tools/annotations/24.5.0/annotations-24.5.0.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/com.github.bumptech.glIDe/glIDe/3.7.0/9e9eeaf9948ee4d6c3ab354e8dc14368f16994a4/glIDe-3.7.0.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/io.reactivex/rxjava/1.2.6/de0c509ae6c9db5b5b6004a9d102c92708346f7c/rxjava-1.2.6.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/com.squareup.okio/okio/1.11.0/840897fcd7223a8143f1d9b6f69714e7be34fd50/okio-1.11.0.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/com.squareup.retrofit2/adapter-rxjava/2.2.0/d80514b6f44f0c4c6234e2d67fea783a25e77275/adapter-rxjava-2.2.0.jar:/home/harisvsulaiman/androID-studio/gradle/m2repository/com/Googlecode/juniversalchardet/juniversalchardet/1.0.3/juniversalchardet-1.0.3.jar:/home/harisvsulaiman/androID-studio/gradle/m2repository/com/androID/databinding/compiler/2.3.0/compiler-2.3.0.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/org.jetbrains/annotations/13.0/919f0dfe192fb4e063e7dacadee7f8bb9a2672a9/annotations-13.0.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/io.realm/realm-annotations/3.0.0/32a01bbb8cb421b6d53d7a102412142b0391c8c7/realm-annotations-3.0.0.jar:/home/harisvsulaiman/androID-studio/gradle/m2repository/org/antlr/antlr4/4.5.3/antlr4-4.5.3.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/com.squareup.retrofit2/retrofit/2.2.0/41e67dba73c3347e4503761642c39d0e06ca1f2/retrofit-2.2.0.jar:/home/harisvsulaiman/androID-studio/gradle/m2repository/com/squareup/javawriter/2.5.0/javawriter-2.5.0.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/com.squareup.ok@R_419_6822@3/ok@R_419_6822@/3.6.0/69edde9fc4b01c9fd51d25b83428837478c27254/ok@R_419_6822@-3.6.0.jar:/home/harisvsulaiman/.androID/build-cache/478fd1ace0e77af57c87f42a281aed180d5ce276/output/jars/classes.jar:/home/harisvsulaiman/.androID/build-cache/d7d6ec093cb49766f796118979b331d6f5c2b4c4/output/jars/classes.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/io.realm/realm-annotations/3.0.0/32a01bbb8cb421b6d53d7a102412142b0391c8c7/realm-annotations-3.0.0.jar:/home/harisvsulaiman/.androID/build-cache/17205aea1b3195cf38fb66c2e060ee4beed141f8/output/jars/classes.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/com.squareup.retrofit2/adapter-rxjava/2.2.0/d80514b6f44f0c4c6234e2d67fea783a25e77275/adapter-rxjava-2.2.0.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/com.squareup.retrofit2/retrofit/2.2.0/41e67dba73c3347e4503761642c39d0e06ca1f2/retrofit-2.2.0.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/com.squareup.ok@R_419_6822@3/ok@R_419_6822@/3.6.0/69edde9fc4b01c9fd51d25b83428837478c27254/ok@R_419_6822@-3.6.0.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/com.squareup.okio/okio/1.11.0/840897fcd7223a8143f1d9b6f69714e7be34fd50/okio-1.11.0.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/io.reactivex/rxjava/1.2.6/de0c509ae6c9db5b5b6004a9d102c92708346f7c/rxjava-1.2.6.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/com.github.bumptech.glIDe/glIDe/3.7.0/9e9eeaf9948ee4d6c3ab354e8dc14368f16994a4/glIDe-3.7.0.jar:/home/harisvsulaiman/.androID/build-cache/6249fbc26c3c324164d6bccd213e772dbffabab8/output/jars/classes.jar:/home/harisvsulaiman/.androID/build-cache/00346f3603afd369923753ca5b3574b3cbd68913/output/jars/classes.jar:/home/harisvsulaiman/.androID/build-cache/44456db0af44370448077b85155ec1b111460aaf/output/jars/classes.jar:/home/harisvsulaiman/.androID/build-cache/ab1b9ebddb2122246c96bfd338f92a2af4329445/output/jars/classes.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/com.airbnb.androID/epoxy-annotations/1.7.5/509abda14719aa31f55123c9a757bdadc8f45818/epoxy-annotations-1.7.5.jar:/home/harisvsulaiman/.androID/build-cache/fb128d6e98efde38d1b59985fb85f2eee1b186eb/output/jars/classes.jar:/home/harisvsulaiman/.androID/build-cache/c9550d2fd003ae92d1406c8c46f2b35cffe031ce/output/jars/classes.jar:/home/harisvsulaiman/.androID/build-cache/08e46ece36546bbc2b85ffa90c6a8a4cf3bbab10/output/jars/classes.jar:/home/harisvsulaiman/.androID/build-cache/b293042c81288354130e748246586e2669e423d1/output/jars/classes.jar:/home/harisvsulaiman/.androID/build-cache/6a84f4dc5c9dda9b0a661c34b982f15791783194/output/jars/classes.jar:/home/harisvsulaiman/Sdk/extras/m2repository/com/androID/support/constraint/constraint-layout-solver/1.0.1/constraint-layout-solver-1.0.1.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jre7/1.1.0/ef03cfed144ff47eed2cab1f7be4381bc18a6237/kotlin-stdlib-jre7-1.1.0.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.1.0/96a07041a11a09cf578892932d7511e1e11e3b6c/kotlin-stdlib-1.1.0.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/org.jetbrains/annotations/13.0/919f0dfe192fb4e063e7dacadee7f8bb9a2672a9/annotations-13.0.jar:/home/harisvsulaiman/.androID/build-cache/79467da2ee5fd2328774a23645475ecb9d0946fd/output/jars/classes.jar:/home/harisvsulaiman/.androID/build-cache/02c10559b235748437a45d6ca44f6c5e5230c4e9/output/jars/classes.jar:/home/harisvsulaiman/.androID/build-cache/82bf4ec6a1051c7130958118c35d8fb99643c133/output/jars/classes.jar:/home/harisvsulaiman/.androID/build-cache/8dd8873d08fda228f6ea3117e6073fd14e35a5d4/output/jars/classes.jar:/home/harisvsulaiman/.androID/build-cache/8fc507ef1c90eab75de9d0123ad4b7535753f320/output/jars/classes.jar:/home/harisvsulaiman/.androID/build-cache/5fb2bef0cb0bba8cf7f981cadcf1cf142a325276/output/jars/classes.jar:/home/harisvsulaiman/.androID/build-cache/0727c2e3f4507058ea7ae52687ced332bf06362f/output/jars/classes.jar:/home/harisvsulaiman/.androID/build-cache/31d4c76434ce8a5ba46bf630f178e855f7516250/output/jars/classes.jar:/home/harisvsulaiman/Sdk/extras/androID/m2repository/com/androID/support/support-annotations/25.2.0/support-annotations-25.2.0.jar:/home/harisvsulaiman/androID-studio/gradle/m2repository/com/androID/databinding/baselibrary/2.3.0/baselibrary-2.3.0.jarDestination for generated sources was modifIEd by kapt. PrevIoUs value = /home/harisvsulaiman/AndroIDStudioProjects/Hafiz/app/build/generated/source/apt/deBUG:app:compileDeBUGKotlinAfterJavaw: The '-d' option with a directory destination is ignored because '-module' is specifIEd:app:copyDeBUGKotlinClasses UP-TO-DATE:app:compileDeBUGNdk UP-TO-DATE:app:compileDeBUGSources:app:incrementalDeBUGUnitTestJavaCompilationSafeguard UP-TO-DATE:app:java@R_441_3013@eBUGUnitTest:app:compileDeBUGUnitTestKotlin UP-TO-DATE:app:compileDeBUGUnitTestJavaWithJavac UP-TO-DATE:app:compileDeBUGUnitTestKotlinAfterJava UP-TO-DATE:app:copyDeBUGUnitTestKotlinClasses UP-TO-DATE:app:processDeBUGJavaRes UP-TO-DATE:app:processDeBUGUnitTestJavaRes UP-TO-DATE:app:compileDeBUGUnitTestSources UP-TO-DATE:app:incrementalDeBUGAndroIDTestJavaCompilationSafeguard UP-TO-DATE:app:java@R_441_3013@eBUGAndroIDTest:app:compileDeBUGAndroIDTestKotlin:app:compileDeBUGAndroIDTestJavaWithJavacProcessor path was modifIEd by kapt. PrevIoUs value = /home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/javax.inject/javax.inject/1/6975da39a7040257bd51d21a231b76c915872d38/javax.inject-1.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-core/1.3/42a25dc3219429f0e5d060061f71acb49bf010a0/hamcrest-core-1.3.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/com.Google.code.findBUGs/Jsr305/2.0.1/516c03b21d50a644d538de0f0369c620989cd8f0/Jsr305-2.0.1.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/junit/junit/4.12/2973d150c0dc1fefe998f834810d68f278ea58ec/junit-4.12.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/io.realm/realm-annotations-processor/3.0.0/61c2ac9e7a068736558e69d585cfa777b35058b2/realm-annotations-processor-3.0.0.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/javax.annotation/javax.annotation-API/1.2/479c1e06db31c432330183f5cae684163f186146/javax.annotation-API-1.2.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-integration/1.3/5de0c73fef18917cd85d0ab70bb23818685e4dfd/hamcrest-integration-1.3.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/io.realm/realm-annotations/3.0.0/32a01bbb8cb421b6d53d7a102412142b0391c8c7/realm-annotations-3.0.0.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-library/1.3/4785a3c21320980282f9f33d0d1264a69040538f/hamcrest-library-1.3.jar:/home/harisvsulaiman/androID-studio/gradle/m2repository/com/squareup/javawriter/2.5.0/javawriter-2.5.0.jar:/home/harisvsulaiman/.androID/build-cache/12537e43a85ab0afa777ffffaa3156b34b448f54/output/jars/classes.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/com.squareup/javawriter/2.1.1/67ff45d9ae02e583d0f9b3432a5ebbe05c30c966/javawriter-2.1.1.jar:/home/harisvsulaiman/.androID/build-cache/793aa84797fecdb3ba2f8477970a8b447c352cbd/output/jars/classes.jar:/home/harisvsulaiman/.androID/build-cache/ce412e8a194fce2780827ef6800ab6ff4b18323d/output/jars/classes.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/junit/junit/4.12/2973d150c0dc1fefe998f834810d68f278ea58ec/junit-4.12.jar:/home/harisvsulaiman/.androID/build-cache/7e420608fba4187802d4eaa0ca3d7f5c55016f84/output/jars/classes.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/javax.inject/javax.inject/1/6975da39a7040257bd51d21a231b76c915872d38/javax.inject-1.jar:/home/harisvsulaiman/.androID/build-cache/44be9593d071350b5f9d23c72dca4110a3c5e62a/output/jars/classes.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-integration/1.3/5de0c73fef18917cd85d0ab70bb23818685e4dfd/hamcrest-integration-1.3.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-library/1.3/4785a3c21320980282f9f33d0d1264a69040538f/hamcrest-library-1.3.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-core/1.3/42a25dc3219429f0e5d060061f71acb49bf010a0/hamcrest-core-1.3.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/com.Google.code.findBUGs/Jsr305/2.0.1/516c03b21d50a644d538de0f0369c620989cd8f0/Jsr305-2.0.1.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/javax.annotation/javax.annotation-API/1.2/479c1e06db31c432330183f5cae684163f186146/javax.annotation-API-1.2.jar:/home/harisvsulaiman/.androID/build-cache/478fd1ace0e77af57c87f42a281aed180d5ce276/output/jars/classes.jar:/home/harisvsulaiman/.androID/build-cache/d7d6ec093cb49766f796118979b331d6f5c2b4c4/output/jars/classes.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/io.realm/realm-annotations/3.0.0/32a01bbb8cb421b6d53d7a102412142b0391c8c7/realm-annotations-3.0.0.jar:/home/harisvsulaiman/.androID/build-cache/17205aea1b3195cf38fb66c2e060ee4beed141f8/output/jars/classes.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/com.squareup.retrofit2/adapter-rxjava/2.2.0/d80514b6f44f0c4c6234e2d67fea783a25e77275/adapter-rxjava-2.2.0.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/com.squareup.retrofit2/retrofit/2.2.0/41e67dba73c3347e4503761642c39d0e06ca1f2/retrofit-2.2.0.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/com.squareup.ok@R_419_6822@3/ok@R_419_6822@/3.6.0/69edde9fc4b01c9fd51d25b83428837478c27254/ok@R_419_6822@-3.6.0.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/com.squareup.okio/okio/1.11.0/840897fcd7223a8143f1d9b6f69714e7be34fd50/okio-1.11.0.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/io.reactivex/rxjava/1.2.6/de0c509ae6c9db5b5b6004a9d102c92708346f7c/rxjava-1.2.6.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/com.github.bumptech.glIDe/glIDe/3.7.0/9e9eeaf9948ee4d6c3ab354e8dc14368f16994a4/glIDe-3.7.0.jar:/home/harisvsulaiman/.androID/build-cache/6249fbc26c3c324164d6bccd213e772dbffabab8/output/jars/classes.jar:/home/harisvsulaiman/.androID/build-cache/00346f3603afd369923753ca5b3574b3cbd68913/output/jars/classes.jar:/home/harisvsulaiman/.androID/build-cache/44456db0af44370448077b85155ec1b111460aaf/output/jars/classes.jar:/home/harisvsulaiman/.androID/build-cache/ab1b9ebddb2122246c96bfd338f92a2af4329445/output/jars/classes.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/com.airbnb.androID/epoxy-annotations/1.7.5/509abda14719aa31f55123c9a757bdadc8f45818/epoxy-annotations-1.7.5.jar:/home/harisvsulaiman/.androID/build-cache/fb128d6e98efde38d1b59985fb85f2eee1b186eb/output/jars/classes.jar:/home/harisvsulaiman/.androID/build-cache/c9550d2fd003ae92d1406c8c46f2b35cffe031ce/output/jars/classes.jar:/home/harisvsulaiman/.androID/build-cache/08e46ece36546bbc2b85ffa90c6a8a4cf3bbab10/output/jars/classes.jar:/home/harisvsulaiman/.androID/build-cache/b293042c81288354130e748246586e2669e423d1/output/jars/classes.jar:/home/harisvsulaiman/.androID/build-cache/6a84f4dc5c9dda9b0a661c34b982f15791783194/output/jars/classes.jar:/home/harisvsulaiman/Sdk/extras/m2repository/com/androID/support/constraint/constraint-layout-solver/1.0.1/constraint-layout-solver-1.0.1.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jre7/1.1.0/ef03cfed144ff47eed2cab1f7be4381bc18a6237/kotlin-stdlib-jre7-1.1.0.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.1.0/96a07041a11a09cf578892932d7511e1e11e3b6c/kotlin-stdlib-1.1.0.jar:/home/harisvsulaiman/.gradle/caches/modules-2/files-2.1/org.jetbrains/annotations/13.0/919f0dfe192fb4e063e7dacadee7f8bb9a2672a9/annotations-13.0.jar:/home/harisvsulaiman/.androID/build-cache/79467da2ee5fd2328774a23645475ecb9d0946fd/output/jars/classes.jar:/home/harisvsulaiman/.androID/build-cache/02c10559b235748437a45d6ca44f6c5e5230c4e9/output/jars/classes.jar:/home/harisvsulaiman/.androID/build-cache/82bf4ec6a1051c7130958118c35d8fb99643c133/output/jars/classes.jar:/home/harisvsulaiman/.androID/build-cache/8dd8873d08fda228f6ea3117e6073fd14e35a5d4/output/jars/classes.jar:/home/harisvsulaiman/.androID/build-cache/8fc507ef1c90eab75de9d0123ad4b7535753f320/output/jars/classes.jar:/home/harisvsulaiman/.androID/build-cache/5fb2bef0cb0bba8cf7f981cadcf1cf142a325276/output/jars/classes.jar:/home/harisvsulaiman/.androID/build-cache/0727c2e3f4507058ea7ae52687ced332bf06362f/output/jars/classes.jar:/home/harisvsulaiman/.androID/build-cache/31d4c76434ce8a5ba46bf630f178e855f7516250/output/jars/classes.jar:/home/harisvsulaiman/Sdk/extras/androID/m2repository/com/androID/support/support-annotations/25.2.0/support-annotations-25.2.0.jar:/home/harisvsulaiman/androID-studio/gradle/m2repository/com/androID/databinding/baselibrary/2.3.0/baselibrary-2.3.0.jar:/home/harisvsulaiman/AndroIDStudioProjects/Hafiz/app/build/intermediates/classes/deBUGDestination for generated sources was modifIEd by kapt. PrevIoUs value = /home/harisvsulaiman/AndroIDStudioProjects/Hafiz/app/build/generated/source/apt/androIDTest/deBUG:app:compileDeBUGAndroIDTestJavaWithJavac FailedFAILURE: Build Failed with an exception.* What went wrong:Execution Failed for task ':app:compileDeBUGAndroIDTestJavaWithJavac'.> java.lang.RuntimeException: Failed to parse data binding compiler options. Params:  kapt.annotations : /home/harisvsulaiman/AndroIDStudioProjects/Hafiz/app/build/tmp/kapt/deBUGAndroIDTest/wrappers/annotations.deBUGAndroIDTest.txt  kapt.kotlin.generated : /home/harisvsulaiman/AndroIDStudioProjects/Hafiz/app/build/tmp/kapt/deBUGAndroIDTest/kotlinGenerated* Try:Run with --stacktrace option to get the stack trace. Run with --info or --deBUG option to get more log output.BUILD Failed

build.gradle文件:

apply plugin: 'com.androID.application'apply plugin: 'realm-androID'apply plugin: 'kotlin-androID'androID {    compileSdkVersion 25    buildToolsversion "25.0.2"    defaultConfig {        applicationID "com.spar.hafiz"        minSdkVersion 17        targetSdkVersion 25        versionCode 1        versionname "1.0"        testInstrumentationRunner "androID.support.test.runner.AndroIDJUnitRunner"        vectorDrawables {            useSupportlibrary true        }    }    dataBinding {        enabled true    }    buildTypes {        release {            MinifyEnabled false            proguardfiles getDefaultProguardfile('proguard-androID.txt'),'proguard-rules.pro'        }    }    sourceSets {        main.java.srcDirs += 'src/main/kotlin'    }}dependencIEs {    compile filetree(dir: 'libs',include: ['*.jar'])    androIDTestCompile('com.androID.support.test.espresso:espresso-core:2.2.2',{        exclude group: 'com.androID.support',module: 'support-annotations'    })    kapt 'com.androID.databinding:compiler:2.3.0'    compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"    compile 'com.squareup.retrofit2:retrofit:2.2.0'    compile 'io.reactivex:rxjava:1.2.6'    compile 'com.synnapps:carouselvIEw:0.0.10'    compile 'com.squareup.retrofit2:adapter-rxjava:2.2.0'    compile 'com.github.bumptech.glIDe:glIDe:3.7.0'    compile 'com.airbnb.androID:epoxy:1.7.5'    testCompile 'junit:junit:4.12'    kapt 'com.airbnb.androID:epoxy-processor:1.7.5'    compile 'com.androID.support:support-v4:25.2.0'    compile 'com.androID.support:appcompat-v7:25.2.0'    compile 'com.androID.support:cardvIEw-v7:25.2.0'    compile 'com.androID.support.constraint:constraint-layout:1.0.1'    compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"}kapt {    generateStubs = true}repositorIEs {    mavenCentral()}// top-level build file where you can add configuration options common to all sub-projects/modules.buildscript {    ext.kotlin_version = '1.1.0'    repositorIEs {        jcenter()    }    dependencIEs {        classpath 'com.androID.tools.build:gradle:2.3.0'        classpath "io.realm:realm-gradle-plugin:3.0.0"        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"        // NOTE: Do not place your application dependencIEs here; they belong        // in the indivIDual module build.gradle files    }}allprojects {    repositorIEs {        jcenter()    }}task clean(type: Delete) {    delete rootProject.buildDir}// top-level build file where you can add configuration options common to all sub-projects/modules.buildscript {    ext.kotlin_version = '1.1.0'    repositorIEs {        jcenter()    }    dependencIEs {        classpath 'com.androID.tools.build:gradle:2.3.0'        classpath "io.realm:realm-gradle-plugin:3.0.0"        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"        // NOTE: Do not place your application dependencIEs here; they belong        // in the indivIDual module build.gradle files    }}allprojects {    repositorIEs {        jcenter()    }}task clean(type: Delete) {    delete rootProject.buildDir}
解决方法 我已经解决了同样的问题.

删除此代码.

kapt {    generateStubs = true}

并添加此代码.

apply plugin: 'kotlin-kapt'

参考链接:https://blog.jetbrains.com/kotlin/2016/09/kotlin-1-0-4-is-here/

总结

以上是内存溢出为你收集整理的android – 用新的kotlin 1.1构建错误,kapt不能解析数据绑定参数全部内容,希望文章能够帮你解决android – 用新的kotlin 1.1构建错误,kapt不能解析数据绑定参数所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1132009.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-30
下一篇 2022-05-30

发表评论

登录后才能评论

评论列表(0条)

保存