Android Question TouchPanelCreator (Solved)

Shelby

Well-Known Member
Licensed User
Longtime User
I installed a new hard drive, downloaded a new B4A 11.50 program, made sure the pathways are correct, and so on. My project will now not compile with the error message:

B4A Version: 11.50
Parsing code. Error
Error parsing program.
Error description: Unknown type: touchpanelcreator
Are you missing a library reference?
Error occurred on line: 38 (XUIScrollView)
Dim tpc As TouchPanelCreator

I can't find any touchpanelcreator in my code, so where is it?
 

Attachments

  • SS2021B4X.zip
    197.2 KB · Views: 267

Sagenut

Expert
Licensed User
Longtime User
I am not in front of pc so I can't test your project.
The error looks to refer to an external library (XuiScrollView).
Did you point correctly the path to Additional library?
Is that library flagged?
Maybe need to download it again if it was a third party library.
 
Upvote 0

Shelby

Well-Known Member
Licensed User
Longtime User
Yeah, I thought about that but I usually find unknown libraries hard to find. I'll put in some time on that.
Thanks Nut
 
Upvote 0

Sagenut

Expert
Licensed User
Longtime User
Did you checked the link that I suggested you?
 
Upvote 0

Shelby

Well-Known Member
Licensed User
Longtime User
Forgot, I'll check it......
Oh yeah, I loaded, unzipped and put it in my additional libraries earlier (from Informatix)
It brings up the scrollview 2D in the libraries manager tab
Now I'll upload the library from Star-dust and try it
It's called SD_XUIscrollview2d but it won't appear in my libraries tab.
I put it in my files folder for this project, and put it into my Additional libraries folder.
Now I'm trying Star-Dust's sample projects to see if the library (after I placed it in the files folder) will appear in the Libs Manager tab. So far it hasn't.
 
Last edited:
Upvote 0

klaus

Expert
Licensed User
Longtime User
Are you sure that the code you posted in post #1 is the correct one ?
I do not get the error you mention.
First, you need the ScrollView2D library, which you must copy into your AdditionalLibraries folder.
There were some errors in your code.
Attached a working project.
 

Attachments

  • SS2021B4X_New.zip
    196.9 KB · Views: 225
Upvote 0

Shelby

Well-Known Member
Licensed User
Longtime User
Are you sure that the code you posted in post #1 is the correct one ?
Yes, I took it from my project IDE with the export function. The Scrollview2d and the SD_XUIScrollView2D are in the Addnl. Libs. Folder
Thanks

With your project, I still get the following:
B4A Version: 11.50
Parsing code. Error
Error parsing program.
Error description: Unknown type: scrollview2d
Are you missing a library reference?
Error occurred on line: 64 (xTableLite)
Private SV2 As ScrollView2D

Since my hard drive crashed and I installed a new one, do I need some item to be replaced? How about the Haxm in the AVD manager; how about the SDK Manager buttons saying download SDK; perhaps I should click that button although I think I have have the SDK-11.0.1 in C:\Android>tools>libs>or bin
 
Last edited:
Upvote 0

Sagenut

Expert
Licensed User
Longtime User
I put it in my files folder for this project, and put it into my Additional libraries folder.
Now I'm trying Star-Dust's sample projects to see if the library (after I placed it in the files folder) will appear in the Libs Manager tab. So far it hasn't.
You should put it just in the Additional Libraries folder.
No need to put it into your project files folder.
 
Upvote 0

Shelby

Well-Known Member
Licensed User
Longtime User
You should put it just in the Additional Libraries folder.
No need to put it into your project files folder.
Thanks Sage, I'll take it out although I don't know if that generates the error. Whoops, the project that Klaus just sent doesn't have the SD_xuiscrollview 2D and the scrollview2D in the files folder; only the addnl. Libs. folder. I'll try downloading the Haxm if no one objects in the next few mins.
 
Last edited:
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
You need to download the ViewsEx library to solve this problem
 
Upvote 0

Shelby

Well-Known Member
Licensed User
Longtime User
You need to download the ViewsEx library to solve this problem
Thanks Star,
I just checked and that ViewsEx library is in my project's libraries tab; I activated it. Now I'll restart the project.
Unfortunately, this again:

B4A Version: 11.50
Parsing code. Error
Error parsing program.
Error description: Unknown type: scrollview2d
Are you missing a library reference?
Error occurred on line: 64 (xTableLite)
Private SV2 As ScrollView2D
 
Upvote 0

Shelby

Well-Known Member
Licensed User
Longtime User
Uh-oh, Looks like I need to download the command lines tools to Android>tools>bin etcetera. I'll try that.
Forget that, they already seem to be in the Android Folder on C:\; maybe I should download them all over since I brought that folder over from the old hard drive I think. ? I moved the folder over to the new hard drive with an external hard drive.
 
Last edited:
Upvote 0

klaus

Expert
Licensed User
Longtime User
Error description: Unknown type: scrollview2d
As already said in post #9, you need the ScrollView2D library.
In the link above, download project.
There, you have two files ScrollView2D.jar and ScrollView2D.xml. Save these two files in the AdditionalLibraries folder not in the project folder.
The project I posted in post #9 works.
 
Upvote 0

Shelby

Well-Known Member
Licensed User
Longtime User
As already said in post #9, you need the ScrollView2D library.
In the link above, download project.
There, you have two files ScrollView2D.jar and ScrollView2D.xml
Those are already in the Addnl. Libs. folder. I've run both your project and my project from post #1.
Still:
B4A Version: 11.50
Parsing code. Error
Error parsing program.
Error description: Unknown type: scrollview2d
Are you missing a library reference?
Error occurred on line: 64 (xTableLite)
Private SV2 As ScrollView2D
 
Upvote 0

Shelby

Well-Known Member
Licensed User
Longtime User
In the designer I get
Missing required field: Default Value
Class: xTableLite
 
Upvote 0

Sagenut

Expert
Licensed User
Longtime User
Uh-oh, Looks like I need to download the command lines tools to Android>tools>bin etcetera. I'll try that.
Forget that, they already seem to be in the Android Folder on C:\; maybe I should download them all over since I brought that folder over from the old hard drive I think. ? I moved the folder over to the new hard drive with an external hard drive.
Yes, absolutely download a complete new Android SDK (made of 2 parts, SDK and Resources) using the links supplied in B4A Installation guide.
 
Upvote 0

Shelby

Well-Known Member
Licensed User
Longtime User
Yes, absolutely download a complete new Android SDK (made of 2 parts, SDK and Resources) using the links supplied in B4A Installation guide.
Thanks, I'll try that now. .......
It didn't help so far. I renamed old folder to OldAndroid and unzipped the commandlinetools.zip and the resources_06_21 into the new Android folder.
 
Last edited:
Upvote 0
Top