logankoester / grunt-phonegap

A Grunt plugin to provide local build tasks for Phonegap applications
MIT License
173 stars 61 forks source link

[Androd] Can't debug app #106

Open leosimas opened 10 years ago

leosimas commented 10 years ago

I'm trying to activate the debuggable flag using the "hello world" project. Even with the debuggable set to true in the Gruntfile.coffee.

The generated AndroidManifest.xml is always with debuggable="false"

I tried the comands: $ grunt phonegap:run:android $ grunt phonegap:debug:android

They didn't work.

I have to manually go to the directory: build\platforms\android Change the AndroidManifest.xml to set it true And run the "phonegap run android" in the build directory

gabrielpoca commented 10 years ago

Hi @leosimas, can you please share the section of your gruntfile respecting to this?

leosimas commented 10 years ago

It's the Gruntfile.coffee from the Hello World, project.

module.exports = (grunt) ->

grunt.initConfig pkg: grunt.file.readJSON 'package.json'

phonegap:
  config:
    debuggable: true
    plugins: []
    platforms: ['android']

I just gave up using it. Now I'm using a javascript gruntfile in another project and it's working.

jonknapp commented 10 years ago

@leosimas could you leave a copy of the config that's working for you?

I'm running into a similar problem with the "hello world" app. It fails to move two files in the "post build" step. Not sure if that's causing the issue or not.

-post-build:
>> [move] Warning: Could not find file /Users/jon/Projects/myapp/build/platforms/android/ant-build/AndroidManifest.xml to copy.
>> [move] Warning: Could not find file /Users/jon/Projects/myapp/build/platforms/android/CordovaLib/ant-build/AndroidManifest.xml to copy.
leosimas commented 10 years ago

Sorry, @jonknapp. I quit using grunt-phonegap because of its limitations. I'm using some "hooks" and some shell scripts to help building the project I'm working on.