Buonasera,
Compilando questo progetto:
Ricevo il seguente errore:
B4A Versione: 7.30
Analisi del Codice. (0.00s)
Compilazione del codice. (0.05s)
Compilazione del codice di layouts (0.00s)
Organizzazione Librerie. (0.00s)
Generazione file R. (0.55s)
Compilazione del codice Java prodotto. Error
javac 1.8.0_144
src\de\amberhome\appcompat\example1\main.java:331: error: package de.amberhome.objects.appcompat does not exist
de.amberhome.objects.appcompat.ACActionBar _bar = null;
^
1 error
Sapete il motivo?
Grazie mille
Compilando questo progetto:
B4X:
#Region Project Attributes
#ApplicationLabel: AppCompat1
#VersionCode: 2
#VersionName: 2.0
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: unspecified
#CanInstallToExternalStorage: False
#End Region
#AdditionalRes: $AndroidSDK$\extras\android\support\v7\appcompat\res, android.support.v7.appcompat
#Extends: android.support.v7.app.AppCompatActivity
#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.
Private Spinner1 As Spinner
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("b4a4lay1")
Spinner1.AddAll(Array("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"))
'Set some ActionBar options
Dim bar As ACActionBar
bar.Initialize
bar.Title = "Simple AppCompat example"
bar.Subtitle = "This is a Subtitle"
Activity.AddMenuItem("Test overflow", "Menu")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub EditText1_TextChanged (Old As String, New As String)
Log("EditText1 TextChanged event fired")
End Sub
Sub EditText1_EnterPressed
Log("EditText1 EnterPressed event fired")
End Sub
Sub EditText1_FocusChanged (HasFocus As Boolean)
Log("EditText1 FocusChanged event fired")
End Sub
Sub CheckBox1_CheckedChange(Checked As Boolean)
Log("CheckBox1 CheckedChange event fired")
End Sub
Sub RadioButton1_CheckedChange(Checked As Boolean)
Log("RadioButton1_CheckedChange event fired")
End Sub
Sub Spinner1_ItemClick (Position As Int, Value As Object)
Log("Spinner1 ItemClick event fired")
End Sub
Sub Button1_Click
Log("Button1 Click event fired")
End Sub
Sub SeekBar1_ValueChanged (Value As Int, UserChanged As Boolean)
Log("Seekbar1 ValueChanged event fired")
End Sub
Ricevo il seguente errore:
B4A Versione: 7.30
Analisi del Codice. (0.00s)
Compilazione del codice. (0.05s)
Compilazione del codice di layouts (0.00s)
Organizzazione Librerie. (0.00s)
Generazione file R. (0.55s)
Compilazione del codice Java prodotto. Error
javac 1.8.0_144
src\de\amberhome\appcompat\example1\main.java:331: error: package de.amberhome.objects.appcompat does not exist
de.amberhome.objects.appcompat.ACActionBar _bar = null;
^
1 error
Sapete il motivo?
Grazie mille
Last edited: