Android Question Error using Debug mode (legacy)

studio4

Member
Licensed User
Longtime User
Hello,
I have a problem. When I compile with realase mode all is ok, but when I compile using Debug mode I obtain the next error. I am using v. 3.82:

Parsing code. 0.00
Compiling code. 0.05
Compiling layouts code. 0.00
Generating R file. 0.03
Compiling generated Java code. Error
javac 1.7.0_65
src\b4a\example\main.java:311: error: method PushSubsStack in class Debug cannot be applied to given types;
Debug.PushSubsStack("Activity_Create (main) ","main",0,mostCurrent.activityBA,mostCurrent,27);
^
required: String,String,int,BA,Object
found: String,String,int,BA,main,int
reason: actual and formal argument lists differ in length
1 error



This is the code of my App (It is a probe):


#Region Project Attributes

#ApplicationLabel: B4A Example

#VersionCode: 1

#VersionName:

'SupportedOrientations possible values: unspecified, landscape or portrait.

#SupportedOrientations: unspecified

#CanInstallToExternalStorage: False

#End Region

#Region Activity Attributes

#FullScreen: False

#IncludeTitle: True

#End Region

Sub Process_Globals

'These global variables will be declared once when the application starts.

'These variables can be accessed from all modules.

End Sub

Sub Globals

'These global variables will be redeclared each time the activity is created.

'These variables can only be accessed from this module.

End Sub

Sub Activity_Create(FirstTime AsBoolean)

'Do not forget to load the layout file created with the visual designer. For example:

'Activity.LoadLayout("Layout1")

Msgbox("hello","hello")

End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed AsBoolean)

End Sub

__________________________________________________
I already uninstall b4a and the SDK manager twice, but It is not the solution. Please, I need your help. My B4A always Works fine.
 

stevel05

Expert
Licensed User
Longtime User
It compiles for me (B4a 3.82) although it's not a good idea to have a modal dialog (MsgBox) within Activity_Create, try moving it to Activity_Resume. It probably won't solve the error though.

And please use [ CODE ][ /CODE ] tags without the spaces to display code so it's more readable.
 
Upvote 0

studio4

Member
Licensed User
Longtime User
________________-

My project is longer than it. I have done it as an example. It is not a problem of my code. In my real project appears the same error too. Any idea? Thanks.
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
Then perhaps Erel will recognize the error, it's not possible to test it if it won't fail.
 
Upvote 0

James Chamblin

Active Member
Licensed User
Longtime User
looks to me like Debug.jar did not get updated when you upgraded to 3.82. Checked the source of a project I compiled with v 3.50 and the "required:" parameters printed in your error log fits that version whereas the "found:" parameters fit with 3.82. My debug.jar is dated 7/2/14. Try re-installing B4A. might need to uninstall first.
 
Upvote 0

studio4

Member
Licensed User
Longtime User
Ok. I am grateful. My B4A is working now. Yes, the problem was that my Debug library did not match with the version of my B4A (Debug 1.5 and B4A 3.82). Thanks a lot.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…