Android Question [Beta] Error using Debug (rapid)

netkomm

Active Member
Licensed User
Longtime User
Hi,

I am using the Android emulator to debug my code.
When I use the legacy option I have no issue, I can test the code without problem. However when I use the new rapid option, I get this error:

- Rapid Debugger failed to connect to device. Please try to run again.

and goes back to the editor.
 

patrick14384

Member
Licensed User
Longtime User
Hi, I have this same issue. Failed to connect to the Nexus 7 emulator using the rapid debugger, but works fine with the legacy debugger. When using the B4A Bridge to my Nexus 10, the rapid debugger works just fine.

This is awesome, I have to say. Thanks Erel! Please let me know if I can provide any info for the emulator problem.
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
upload_2015-4-6_16-23-7.png



upload_2015-4-6_16-23-20.png



I'm too tired to write the obvious question :D
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
Can you post the code? You shouldn't set max version at all.

Also try to uninstall the existing app before you install it.


I tried but get same error (without msg "... no such file or directory").

The manifest file is almost the default:
B4X:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: http://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="14" />
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
SetApplicationAttribute(android:theme, "@android:style/Theme.Holo")
SetActivityAttribute(main, android:theme, @android:style/Theme.Holo.NoActionBar)
'End of default text.

Maybe I should try reinstalling B4A.


Thank you, Erel
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
If you like upload your complete project and I'll test it here.

Thank you, Erel, but I get that error using any project, even "empty" projects.

For example, the project that I am attaching returns the same error (it is an old sample project to help a member).

The problem stems from some setting.
I have tried reinstalling B4A but it persists.
 

Attachments

  • lm Simple Layout.zip
    12.6 KB · Views: 353
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
Reinstalling B4A will not help. You can check the manifest file created. I assume that its content is created correctly. Maybe there is a problem with your device.

My devices have always been my smartphone and emulators.

Now I have added another physical device but I still get that error.

The strange thing is that I am no longer receiving the error message I obtained using the smartphone:

pkg: /data/local/tmp/result_RAPID_DEBUG.apk
Failure [INSTALL_FAILED_OLDER_SDK]
rm failed for -f, No such file or directory


Is /data/local/tmp/ a pc path, I suppose, right?
Means rm "remove"?

I found result_RAPID_DEBUG.apk in the directory Objects.



[empty project]
Installing file to device. 2.11
Device serial: E6OKC.....
Completed successfully.

[default Manifest]
B4X:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: http://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="14"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
SetApplicationAttribute(android:theme, "@android:style/Theme.Holo")
'End of default text.

upload_2015-4-12_18-34-34.png
 
Upvote 0
Top