Bug? B4A 6.80 BUG ??

MarcoRome

Expert
Licensed User
Longtime User
Hi @Erel, all
I have this strain error.
This is example by @lonleystar ( https://www.b4x.com/android/forum/threads/b4aphotopager-v3-85.40944/ )

upload_2017-3-3_15-28-20.png



Compiling generated Java code. Error
B4A line: 68
Activity.AddView(vp, 0, 0, 100%x, 100%y)
javac 1.8.0_92
src\it\giuseppe\salvi\photoPager\main.java:398: error: cannot access ViewPager
mostCurrent._activity.AddView((android.view.View)(mostCurrent._vp.getObject()),(int) (0),(int) (0),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (100),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (100),mostCurrent.activityBA));
^
class file for android.support.v4.view.ViewPager not found
1 error

if you compile with packagename: "it.giuseppe.salvi.photoPager" work, if i change package name i have this error.
If i rechange packagename anyway i have same error.
In attahcment little example.
Thank you
 

Attachments

  • Test2.zip
    9.2 KB · Views: 234

MarcoRome

Expert
Licensed User
Longtime User
Now run, but anyway only if i add:
#AdditionalJar: com.android.support:support-v4

if in Files folder miss file ec_erro.png ...the app dont work.
Now the question is only "Why i need #AdditionJar to work when in original example work also without this ?"
Thank you again
Marco
 

MarcoRome

Expert
Licensed User
Longtime User
But why if you download the original example ISN'T required and when you try to create a NEW project, i need add it ?
Isn't clear, sometimes it takes and sometimes not ... anyway if i found another problem like i will let you know.
 
Top