Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Android PhoneGap Build

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Android PhoneGap Build

    I am having trouble uploading an Android version of my PhoneGap Build. IOS works great, but I get errors on the Android side. I've gone through all the process of creating my keystore file, I think I am good there. Here is the error log I am getting on the PhoneGap build site:

    Build Date: 2018-02-09 21:12:56 +0000
    --------------------------------------------------------------------------------
    PLUGIN OUTPUT
    --------------------------------------------------------------------------------
    Fetching plugin "[email protected]" via npm
    Installing "cordova-plugin-network-information" at "1.3.4" for android
    Fetching plugin "[email protected]" via npm
    Installing "cordova-plugin-dialogs" at "1.3.4" for android
    Fetching plugin "[email protected]" via npm
    Installing "cordova-plugin-x-toast" at "2.6.0" for android
    Fetching plugin "[email protected]" via npm
    Installing "cordova-plugin-whitelist" at "1.3.3" for android

    This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in.
    Fetching plugin "https://github.com/remoorejr/DocumentHandler.git" via git clone
    Using shallow clone
    Repository "https://github.com/remoorejr/DocumentHandler.git" checked out to git ref "master" at "f501154".
    Installing "ch.ti8m.documenthandler" at "0.2.2" for android
    Fetching plugin "[email protected]" via npm
    Installing "cordova-plugin-splashscreen" at "4.1.0" for android
    Fetching plugin "cordova-open" via npm
    Installing "cordova-open" at "1.0.12" for android
    Fetching plugin "cordova-plugin-file" via npm
    Installing "cordova-plugin-file" at "6.0.1" for android
    Plugin doesn't support this project's cordova-android version. cordova-android: 6.2.3, failed version requirement: >=6.3.0
    Skipping 'cordova-plugin-file' for android
    Fetching plugin "cordova-plugin-file-transfer" via npm
    Installing "cordova-plugin-file-transfer" at "1.7.1" for android
    Plugin dependency "[email protected]" already fetched, using that version.
    Installing "cordova-plugin-file" at "6.0.1" for android
    Plugin doesn't support this project's cordova-android version. cordova-android: 6.2.3, failed version requirement: >=6.3.0
    Skipping 'cordova-plugin-file' for android
    --------------------------------------------------------------------------------
    COMPILE OUTPUT
    --------------------------------------------------------------------------------
    Configuration on demand is an incubating feature.
    :wrapper

    BUILD SUCCESSFUL in 0s
    1 actionable task: 1 executed
    Subproject Path: CordovaLib
    Configuration on demand is an incubating feature.
    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_cz3f2mcxpl5igbjiglney9wmk.run(/project/build.gradle:137)
    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
    :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
    :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
    :prepareOrgApacheCordovaCordovaLib623DebugLibrary
    :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.).
    /project/src/org/apache/cordova/filetransfer/FileTransfer.java:49: error: package org.apache.cordova.file does not exist
    import org.apache.cordova.file.FileUtils;
    ^
    /project/src/org/apache/cordova/filetransfer/FileTransfer.java:851: error: cannot find symbol
    FileUtils filePlugin = (FileUtils) pm.getPlugin("File");
    ^
    symbol: class FileUtils
    /project/src/org/apache/cordova/filetransfer/FileTransfer.java:851: error: cannot find symbol
    FileUtils filePlugin = (FileUtils) pm.getPlugin("File");
    ^
    symbol: class FileUtils
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    Note: /project/src/org/apache/cordova/filetransfer/FileTransfer.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    3 errors
    :compileDebugJavaWithJavac FAILED

    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':compileDebugJavaWithJavac'.
    > Compilation failed; see the compiler error output for details.

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

    BUILD FAILED

    Total time: 1.335 secs
    Error: /project/gradlew: Command failed with exit code 1 Error output:
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    /project/src/org/apache/cordova/filetransfer/FileTransfer.java:49: error: package org.apache.cordova.file does not exist
    import org.apache.cordova.file.FileUtils;
    ^
    /project/src/org/apache/cordova/filetransfer/FileTransfer.java:851: error: cannot find symbol
    FileUtils filePlugin = (FileUtils) pm.getPlugin("File");
    ^
    symbol: class FileUtils
    /project/src/org/apache/cordova/filetransfer/FileTransfer.java:851: error: cannot find symbol
    FileUtils filePlugin = (FileUtils) pm.getPlugin("File");
    ^
    symbol: class FileUtils
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    Note: /project/src/org/apache/cordova/filetransfer/FileTransfer.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    3 errors

    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':compileDebugJavaWithJavac'.
    > Compilation failed; see the compiler error output for details.

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    at ChildProcess.whenDone (/project/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:877:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

    #2
    Re: Android PhoneGap Build

    You need to use the following for Android. They are fine for iOS too.

    <plugin name="cordova-plugin-file-transfer" source="npm" version="1.5.1" />
    <plugin name="cordova-plugin-file" source="npm" version="4.3.3" />

    Comment


      #3
      Re: Android PhoneGap Build

      Thanks. I was reading up on this some and came to a similar conclusion. But now what I am struggling with is how to actually use these different plug versions. I read somewhere that I am supposed to change the config.xml file. Where is that? If anyone has clear documentation, I would love to see it. Thanks!

      Comment


        #4
        Re: Android PhoneGap Build

        I don't know if this is documented, but if the name of your PhoneGap app is "TestApp", then the config.xml file would reside in Default.WebProject\PhoneGapProjects\TestApp\www.

        What Alpha Anywhere build are you using? Some pre-release versions of AA released in the Fall of 2017 had some issues with how plugins and versions were inserted in config.xml. I believe this was fixed with a pre-release build in December.

        Comment


          #5
          Re: Android PhoneGap Build

          If you're using a current pre-release build, the AA PhoneGap builder should automatically insert the correct plugin version for any plugin you select within the builder. However, if you need a plugin which is not listed in the builder, you will need to manually add it to config.xml. I think you can also use the "Manage My PhoneGap Plugins" button to enter 3rd party plugins not listed in the builder. I have never used this before and I'm not sure how well it works. This feature wasn't available when I started using the PhoneGap builder so I got use to manually updating config.xml. There are other times you might need to manually updating config.xml. It's not just when you need to add a plugin that is not listed in the builder.

          Comment


            #6
            Re: Android PhoneGap Build

            Ok, thanks. I see the config file now. And I am currently running version 12.4.5.2, build 4770.

            Here is the section of my config that mentions the plugins:

            <access origin="*" />
            <platform name="ios" />
            <plugin name="cordova-plugin-network-information" source="npm" version="1.3.4" />
            <plugin name="cordova-plugin-dialogs" source="npm" version="1.3.4" />
            <plugin name="cordova-plugin-x-toast" source="npm" version="2.6.0" />
            <plugin name="cordova-plugin-whitelist" source="npm" version="1.3.3" />
            <plugin spec="https://github.com/remoorejr/DocumentHandler.git" source="git" />
            <plugin name="cordova-plugin-splashscreen" source="npm" version="4.1.0" />
            <plugin name="cordova-open" source="npm" />
            <platform name="android" />
            </widget>


            So could I just do this:

            <access origin="*" />
            <platform name="ios" />
            <plugin name="cordova-plugin-network-information" source="npm" version="1.3.4" />
            <plugin name="cordova-plugin-dialogs" source="npm" version="1.3.4" />
            <plugin name="cordova-plugin-x-toast" source="npm" version="2.6.0" />
            <plugin name="cordova-plugin-whitelist" source="npm" version="1.3.3" />
            <plugin spec="https://github.com/remoorejr/DocumentHandler.git" source="git" />
            <plugin name="cordova-plugin-splashscreen" source="npm" version="4.1.0" />
            <plugin name="cordova-open" source="npm" />
            <platform name="android" />
            <plugin name="cordova-plugin-file-transfer" source="npm" version="1.5.1" />
            <plugin name="cordova-plugin-file" source="npm" version="4.3.3" />

            </widget>


            Is there anything I have to download? Or do I literally just modify this config file to include these two plugins?

            Comment


              #7
              Re: Android PhoneGap Build

              You don't need to download anything... PhoneGap Build takes care of that. What you've added is fine... but you don't really need to add the full plugin line. In the Alpha PhoneGap Build Builder you can just "check" the File and File Transfer plugins... then edit your config file and add in the versions. If you click "Save" in the builder... the next dialog will include a link... "Click here to view/edit..." which will open your config file for editing.

              Check this thread for versions...

              https://www.alphasoftware.com/alphaf...light=phonegap

              This whole process has been generally fixed in the current pre-release.

              Before you submit to PhoneGap Build, do a quick check of your config file for duplicate plugins... this whole thing was quite a mess for a while... so double-check.

              Comment


                #8
                Re: Android PhoneGap Build

                Thanks all. So as an update, I went ahead and "checked" file and file transfer plugins, and then hit save, and this click here to view/edit. Looks like the new plugins are there, and show the correct version. However, my Android build still has errors. Here is the most recent log file:

                Build Date: 2018-02-13 16:21:39 +0000
                --------------------------------------------------------------------------------
                PLUGIN OUTPUT
                --------------------------------------------------------------------------------
                Fetching plugin "[email protected]" via npm
                Installing "cordova-plugin-network-information" at "1.3.4" for android
                Fetching plugin "[email protected]" via npm
                Installing "cordova-plugin-dialogs" at "1.3.4" for android
                Fetching plugin "[email protected]" via npm
                Installing "cordova-plugin-x-toast" at "2.6.0" for android
                Fetching plugin "[email protected]" via npm
                Installing "cordova-plugin-whitelist" at "1.3.3" for android

                This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in.
                Fetching plugin "https://github.com/remoorejr/DocumentHandler.git" via git clone
                Using shallow clone
                Repository "https://github.com/remoorejr/DocumentHandler.git" checked out to git ref "master" at "f501154".
                Installing "ch.ti8m.documenthandler" at "0.2.2" for android
                Fetching plugin "[email protected]" via npm
                Installing "cordova-plugin-splashscreen" at "4.1.0" for android
                Fetching plugin "cordova-open" via npm
                Installing "cordova-open" at "1.0.12" for android
                Fetching plugin "cordova-plugin-file" via npm
                Installing "cordova-plugin-file" at "6.0.1" for android
                Plugin doesn't support this project's cordova-android version. cordova-android: 6.2.3, failed version requirement: >=6.3.0
                Skipping 'cordova-plugin-file' for android
                Fetching plugin "cordova-plugin-file-transfer" via npm
                Installing "cordova-plugin-file-transfer" at "1.7.1" for android
                Plugin dependency "[email protected]" already fetched, using that version.
                Installing "cordova-plugin-file" at "6.0.1" for android
                Plugin doesn't support this project's cordova-android version. cordova-android: 6.2.3, failed version requirement: >=6.3.0
                Skipping 'cordova-plugin-file' for android
                Installing "cordova-plugin-file" at "6.0.1" for android
                Plugin doesn't support this project's cordova-android version. cordova-android: 6.2.3, failed version requirement: >=6.3.0
                Skipping 'cordova-plugin-file' for android
                Plugin "cordova-plugin-file-transfer" already installed on android. Making it top-level.
                --------------------------------------------------------------------------------
                COMPILE OUTPUT
                --------------------------------------------------------------------------------
                Configuration on demand is an incubating feature.
                :wrapper

                BUILD SUCCESSFUL in 0s
                1 actionable task: 1 executed
                Subproject Path: CordovaLib
                Configuration on demand is an incubating feature.
                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_3mb8et9b7qigpnmigh1x11v39.run(/project/build.gradle:137)
                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
                :preReleaseBuild UP-TO-DATE
                :checkReleaseManifest
                :CordovaLib:preBuild UP-TO-DATE
                :CordovaLib:preReleaseBuild UP-TO-DATE
                :CordovaLib:checkReleaseManifest
                :CordovaLib:prepareReleaseDependencies
                :CordovaLib:compileReleaseAidl
                :CordovaLib:compileReleaseNdk UP-TO-DATE
                :CordovaLib:compileLint
                :CordovaLib:copyReleaseLint UP-TO-DATE
                :CordovaLib:mergeReleaseShaders
                :CordovaLib:compileReleaseShaders
                :CordovaLib:generateReleaseAssets
                :CordovaLib:mergeReleaseAssets
                :CordovaLib:mergeReleaseProguardFiles
                :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
                :prepareOrgApacheCordovaCordovaLib623ReleaseLibrary
                :prepareReleaseDependencies
                :compileReleaseAidl
                :compileReleaseRenderscript
                :generateReleaseBuildConfig
                :generateReleaseResValues
                :generateReleaseResources
                :mergeReleaseResources
                :processReleaseManifest
                :processReleaseResources
                :generateReleaseSources
                :incrementalReleaseJavaCompilationSafeguard
                :compileReleaseJavaWithJavac
                :compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
                /project/src/org/apache/cordova/filetransfer/FileTransfer.java:49: error: package org.apache.cordova.file does not exist
                import org.apache.cordova.file.FileUtils;
                ^
                /project/src/org/apache/cordova/filetransfer/FileTransfer.java:851: error: cannot find symbol
                FileUtils filePlugin = (FileUtils) pm.getPlugin("File");
                ^
                symbol: class FileUtils
                /project/src/org/apache/cordova/filetransfer/FileTransfer.java:851: error: cannot find symbol
                FileUtils filePlugin = (FileUtils) pm.getPlugin("File");
                ^
                symbol: class FileUtils
                Note: Some input files use or override a deprecated API.
                Note: Recompile with -Xlint:deprecation for details.
                Note: /project/src/org/apache/cordova/filetransfer/FileTransfer.java uses unchecked or unsafe operations.
                Note: Recompile with -Xlint:unchecked for details.
                3 errors
                :compileReleaseJavaWithJavac FAILED

                FAILURE: Build failed with an exception.

                * What went wrong:
                Execution failed for task ':compileReleaseJavaWithJavac'.
                > Compilation failed; see the compiler error output for details.

                * Try:
                Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

                BUILD FAILED

                Total time: 3.119 secs
                Error: /project/gradlew: Command failed with exit code 1 Error output:
                Note: Some input files use or override a deprecated API.
                Note: Recompile with -Xlint:deprecation for details.
                /project/src/org/apache/cordova/filetransfer/FileTransfer.java:49: error: package org.apache.cordova.file does not exist
                import org.apache.cordova.file.FileUtils;
                ^
                /project/src/org/apache/cordova/filetransfer/FileTransfer.java:851: error: cannot find symbol
                FileUtils filePlugin = (FileUtils) pm.getPlugin("File");
                ^
                symbol: class FileUtils
                /project/src/org/apache/cordova/filetransfer/FileTransfer.java:851: error: cannot find symbol
                FileUtils filePlugin = (FileUtils) pm.getPlugin("File");
                ^
                symbol: class FileUtils
                Note: Some input files use or override a deprecated API.
                Note: Recompile with -Xlint:deprecation for details.
                Note: /project/src/org/apache/cordova/filetransfer/FileTransfer.java uses unchecked or unsafe operations.
                Note: Recompile with -Xlint:unchecked for details.
                3 errors

                FAILURE: Build failed with an exception.

                * What went wrong:
                Execution failed for task ':compileReleaseJavaWithJavac'.
                > Compilation failed; see the compiler error output for details.

                * Try:
                Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
                at ChildProcess.whenDone (/project/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
                at emitTwo (events.js:106:13)
                at ChildProcess.emit (events.js:191:7)
                at maybeClose (internal/child_process.js:877:16)
                at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

                Comment


                  #9
                  Re: Android PhoneGap Build

                  Carl - DavidK mentioned a very good point regarding how you should change the config.xml file by first clicking the Save button and then clicking the hyperlink. I should have mentioned this because this is typically what I do. If you change the file before saving or uploading to PhoneGap, the builder may overwrite your plugin changes.

                  Bob Moore fixed a couple of plugin version issues in the build you are using, but there was another issue he did not fix until late December I believe. Sorry I do not have exact dates. It's hard to keep everything straight. Like DavidK mentioned, the current pre-release is your safest bet.

                  Comment


                    #10
                    Re: Android PhoneGap Build

                    Zip and attach your config.xml file.

                    Comment


                      #11
                      Re: Android PhoneGap Build

                      config.zip

                      Comment


                        #12
                        Re: Android PhoneGap Build

                        I don't think this is a plugins issue. I think this is a... something got screwed up in the Alpha update of the config.xml file and it's all gone very badly... issue.

                        I've included your plugins list into a new build of mine... and all is ok.

                        Copy your config.xml file off somewhere... and then delete it. You'll find it in your project folder, in a folder named PhoneGapProjects\YOUR_PHONEGAP_PROJECT_NAME\www\config.xml

                        Then delete the PhoneGap Build app from the PhoneGap Build website.

                        Then open the Alpha PhoneGap Build Builder and create a new project.

                        If that build still fails, then zip and post the full Project Folder from the PhoneGapProjects folder.
                        Last edited by Davidk; 02-13-2018, 03:18 PM.

                        Comment


                          #13
                          Re: Android PhoneGap Build

                          I did as you suggested and deleted the config file and basically started over with the Phonegap build project. This was successful. The Android app now builds correctly.

                          One other weird thing happened though. My status bar along the top of the screen is now gray. It used to match the color of my control bar. Any idea how to change it back? I compared both old and new config files, and don't see any differences, so I'm not sure what changed.

                          snap.jpg

                          Comment

                          Working...
                          X