Teguh Teknisi created CB-13541: ---------------------------------- Summary: Error: Path must be a string. Received undefined Key: CB-13541 URL: https://issues.apache.org/jira/browse/CB-13541 Project: Apache Cordova Issue Type: Bug Components: cordova-android Environment: Kubuntu 17.04 64 bit, Gradle 3.2, Cordova Android 6.3.0, Cordova cli-6.3.0
Reporter: Teguh Teknisi Assignee: Joe Bowser Priority: Trivial When i try to cordiva build android, it will fail, with error: Error: Path must be a string. Received undefined I have to delete platforms/android/android.json to make the cordova android build to success. Here the error log: {code:java} sukanime@Asus-X201EV:~/AndroidStudioProjects/SaklarWiFi$ cordova build android Error: Path must be a string. Received undefined sukanime@Asus-X201EV:~/AndroidStudioProjects/SaklarWiFi$ rm platforms/android/android.json sukanime@Asus-X201EV:~/AndroidStudioProjects/SaklarWiFi$ cordova build android ANDROID_HOME=/home/sukanime/Android/Sdk JAVA_HOME=/usr/lib/jvm/java-8-oracle Subproject Path: CordovaLib The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead. at build_asz7izgfnstnapj05rr74ilff.run(/home/sukanime/AndroidStudioProjects/SaklarWiFi/platforms/android/build.gradle:141) The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0. Incremental java compilation is an incubating feature. The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead. :clean :CordovaLib:clean BUILD SUCCESSFUL Total time: 3.13 secs Subproject Path: CordovaLib Subproject Path: CordovaLib Running command: /home/sukanime/AndroidStudioProjects/SaklarWiFi/hooks/after_prepare/030_resource_files.js /home/sukanime/AndroidStudioProjects/SaklarWiFi ANDROID_HOME=/home/sukanime/Android/Sdk JAVA_HOME=/usr/lib/jvm/java-8-oracle Subproject Path: CordovaLib The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead. at build_asz7izgfnstnapj05rr74ilff.run(/home/sukanime/AndroidStudioProjects/SaklarWiFi/platforms/android/build.gradle:141) The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0. Incremental java compilation is an incubating feature. The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead. :preBuild UP-TO-DATE :preDebugBuild UP-TO-DATE :checkDebugManifest :preReleaseBuild UP-TO-DATE :CordovaLib:preBuild UP-TO-DATE :CordovaLib:preDebugBuild UP-TO-DATE :CordovaLib:checkDebugManifest :CordovaLib:prepareDebugDependencies :CordovaLib:compileDebugAidl :CordovaLib:compileDebugNdk UP-TO-DATE :CordovaLib:compileLint :CordovaLib:copyDebugLint UP-TO-DATE :CordovaLib:mergeDebugShaders :CordovaLib:compileDebugShaders :CordovaLib:generateDebugAssets :CordovaLib:mergeDebugAssets :CordovaLib:mergeDebugProguardFiles UP-TO-DATE :CordovaLib:packageDebugRenderscript UP-TO-DATE :CordovaLib:compileDebugRenderscript :CordovaLib:generateDebugResValues :CordovaLib:generateDebugResources :CordovaLib:packageDebugResources :CordovaLib:processDebugManifest :CordovaLib:generateDebugBuildConfig :CordovaLib:processDebugResources :CordovaLib:generateDebugSources :CordovaLib:incrementalDebugJavaCompilationSafeguard :CordovaLib:compileDebugJavaWithJavac :CordovaLib:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.). Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. :CordovaLib:processDebugJavaRes UP-TO-DATE :CordovaLib:transformResourcesWithMergeJavaResForDebug :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug :CordovaLib:mergeDebugJniLibFolders :CordovaLib:transformNative_libsWithMergeJniLibsForDebug :CordovaLib:transformNative_libsWithSyncJniLibsForDebug :CordovaLib:bundleDebug :CordovaLib:preReleaseBuild UP-TO-DATE :CordovaLib:checkReleaseManifest :CordovaLib:prepareReleaseDependencies :CordovaLib:compileReleaseAidl :CordovaLib:compileReleaseNdk UP-TO-DATE :CordovaLib:copyReleaseLint UP-TO-DATE :CordovaLib:mergeReleaseShaders :CordovaLib:compileReleaseShaders :CordovaLib:generateReleaseAssets :CordovaLib:mergeReleaseAssets :CordovaLib:mergeReleaseProguardFiles UP-TO-DATE :CordovaLib:packageReleaseRenderscript UP-TO-DATE :CordovaLib:compileReleaseRenderscript :CordovaLib:generateReleaseResValues :CordovaLib:generateReleaseResources :CordovaLib:packageReleaseResources :CordovaLib:processReleaseManifest :CordovaLib:generateReleaseBuildConfig :CordovaLib:processReleaseResources :CordovaLib:generateReleaseSources :CordovaLib:incrementalReleaseJavaCompilationSafeguard :CordovaLib:compileReleaseJavaWithJavac :CordovaLib:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.). Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. :CordovaLib:processReleaseJavaRes UP-TO-DATE :CordovaLib:transformResourcesWithMergeJavaResForRelease :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease :CordovaLib:mergeReleaseJniLibFolders :CordovaLib:transformNative_libsWithMergeJniLibsForRelease :CordovaLib:transformNative_libsWithSyncJniLibsForRelease :CordovaLib:bundleRelease :prepareComAndroidSupportSupportV42411Library :prepareOrgApacheCordovaCordovaLib630DebugLibrary :prepareDebugDependencies :compileDebugAidl :compileDebugRenderscript :generateDebugBuildConfig :generateDebugResValues :generateDebugResources :mergeDebugResources :processDebugManifest :processDebugResources :generateDebugSources :incrementalDebugJavaCompilationSafeguard :compileDebugJavaWithJavac :compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.). Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. :compileDebugNdk UP-TO-DATE :compileDebugSources :mergeDebugShaders :compileDebugShaders :generateDebugAssets :mergeDebugAssets :transformClassesWithDexForDebug :mergeDebugJniLibFolders :transformNative_libsWithMergeJniLibsForDebug :processDebugJavaRes UP-TO-DATE :transformResourcesWithMergeJavaResForDebug :validateSigningDebug :packageDebug :assembleDebug :cdvBuildDebug BUILD SUCCESSFUL Total time: 12.142 secs Built the following apk(s): /home/sukanime/AndroidStudioProjects/SaklarWiFi/platforms/android/build/outputs/apk/android-debug.apk sukanime@Asus-X201EV:~/AndroidStudioProjects/SaklarWiFi$ cordova build android Error: Path must be a string. Received undefined sukanime@Asus-X201EV:~/AndroidStudioProjects/SaklarWiFi$ {code} {code:java} i have try to update to cordova 7.1.0 , but its not solved. sukanime@Asus-X201EV:~$ npm install cordova npm WARN deprecated node-uuid@1.4.8: Use uuid module instead npm WARN saveError ENOENT: no such file or directory, open '/home/sukanime/package.json' npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN enoent ENOENT: no such file or directory, open '/home/sukanime/package.json' npm WARN sukanime No description npm WARN sukanime No repository field. npm WARN sukanime No README data npm WARN sukanime No license field. + cordova@7.1.0 added 612 packages in 47.679s sukanime@Asus-X201EV:~$ {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org