grunt-phonegap icon indicating copy to clipboard operation
grunt-phonegap copied to clipboard

[Androd] Can't debug app

Open leosimas opened this issue 11 years ago • 4 comments

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

leosimas avatar Jul 30 '14 14:07 leosimas

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

gabrielpoca avatar Jul 30 '14 19:07 gabrielpoca

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.

leosimas avatar Jul 30 '14 20:07 leosimas

@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.

jonknapp avatar Nov 07 '14 17:11 jonknapp

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.

leosimas avatar Nov 07 '14 17:11 leosimas