cabotdeveloper / CordovaPlugin-GooglePlusWithDemoApp

This Repository contains the Cordova plugin for Google Plus integration. Also it is a project that implemented this plugin.
MIT License
7 stars 5 forks source link

Error after adding plugin #3

Open srameshr opened 9 years ago

srameshr commented 9 years ago

When I add your plugin and try to build the project, I get "android/cordova/node_modules/q/q.js:126 " error and the build stops.

Error code 1 for command: ant with args: debug,-f,/home/username/Desktop/someFolder/appName/platforms/android/build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant-gen
Error: /home/username/Desktop/someFolder/appName/platforms/android/cordova/build: Command failed with exit code 8
    at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:743:16)
    at Process.ChildProcess._handle.onexit (child_process.js:810:5)
cabotdeveloper commented 9 years ago

This is because of difference in android versions in your project and the library files. You should update the libraries and the project in order to make the android versions same.

Execute the following commands from /home/username/Desktop/someFolder/appName/platforms/android android update project -p ~/googleplusLib android update project -p ~/CordovaLib android update project -p ProjectName

You can also change the android version by right clicking and selecting Properties>Android > Set required Project Build target for the libraries and project.

Then you can execute 'ant clean' and 'cordova build android'

srameshr commented 9 years ago

Are you sure it is

android update project -p ~/googleplusLib
android update project -p ~/CordovaLib
android update project -p ProjectName

Because there are no folder called googlePlusLib nor CordovaLib in my home directory. ~/googlePlusLib is that correct?

srameshr commented 9 years ago

And also right click where?

cabotdeveloper commented 9 years ago

googlePlusLib nor CordovaLib may not be in your home directory. You should give the absolute path of the libraries. If you executed the command from /home/username/Desktop/someFolder/appName/platforms/android then you should use /CordovaLib and /google_plus_lib only.

srameshr commented 9 years ago

Yeah that is done.

Now I get this :

Updated local.properties

build.xml: Failed to find version-tag string. File must be updated. In order to not erase potential customizations, the file will not be automatically regenerated. If no changes have been made to the file, delete it manually and run the command again. If you have made customizations to the build process, the file must be manually updated.

cabotdeveloper commented 9 years ago

Build all the library projects and the actual project folders from your IDE. It will regenerate the required files.

srameshr commented 9 years ago

I am not using an IDE.

So I will remove the current android platform and then reinstall it again using "cordova platform add". Will that solve all the problems?

On Wed, Nov 19, 2014 at 1:30 PM, Cabot Developer notifications@github.com wrote:

Build all the library projects and the actual project folders from your IDE. It will regenerate the required files.

— Reply to this email directly or view it on GitHub https://github.com/cabotdeveloper/CordovaPlugin-GooglePlusWithDemoApp/issues/3#issuecomment-63604404 .

cabotdeveloper commented 9 years ago

I think, the issue you are reported is not because of adding this plugin. It is related to the android version of your project or any change in build tools. We require more clarification on this.

Removing platform is not required. Your current issue is solvable.

srameshr commented 9 years ago

But how? Any hints on this?

On Wed, Nov 19, 2014 at 3:19 PM, Cabot Developer notifications@github.com wrote:

I think, the issue you are reported is not because of adding this plugin. It is related to the android version of your project or any change in build tools. We require more clarification on this.

Removing platform is not required. Your current issue is solvable.

— Reply to this email directly or view it on GitHub https://github.com/cabotdeveloper/CordovaPlugin-GooglePlusWithDemoApp/issues/3#issuecomment-63614956 .

srameshr commented 9 years ago

The error occurs only after I add your plugin

On Wed, Nov 19, 2014 at 3:26 PM, Siddhartha R siddhartharramesh@gmail.com wrote:

But how? Any hints on this?

On Wed, Nov 19, 2014 at 3:19 PM, Cabot Developer <notifications@github.com

wrote:

I think, the issue you are reported is not because of adding this plugin. It is related to the android version of your project or any change in build tools. We require more clarification on this.

Removing platform is not required. Your current issue is solvable.

— Reply to this email directly or view it on GitHub https://github.com/cabotdeveloper/CordovaPlugin-GooglePlusWithDemoApp/issues/3#issuecomment-63614956 .