B4A Library Clock-View

Johan Schoeman

Expert
Licensed User
Longtime User
Sorry for the mess, like you said before @Erel should be able to help, I hope
The folder's name must be "font" - not "fonts"

B4X:
invalid resource directory name: ..\libres fonts
 

Albert Kallal

Active Member
Licensed User
I do put the lib res here:

So I tried again. It DOES compile. First things first - the APK posted DOES work!


So lib res is being found. And original post DOES compile.

However, your last build post now spits out above (during the compile). (but I noticed you commented out these two lines:
B4X:
'#AdditionalRes: ..\libres
'#AdditionalJar: com.android.support:support-v4

(perhaps due to testing you by accident left above commented out)

If I include the Jar - it does compile.
If I un-commment addtonalRes, it now does NOT compile. I get this:

B4X:
Organizing libraries.    (0.00s)
    (AndroidX SDK)
Generating R file.    Error
res\values\attrs.xml:7: error: Attribute "clock_type" already defined with incompatible format.
..\libres\values\attrs.xml:7: Original attribute defined here.
res\values\attrs.xml:38: error: Attribute "clock_value_type" already defined with incompatible format.
..\libres\values\attrs.xml:39: Original attribute defined here.
res\values\attrs.xml:44: error: Attribute "clock_value_disposition" already defined with incompatible format.
..\libres\values\attrs.xml:44: Original attribute defined here.
res\values\attrs.xml:49: error: Attribute "clock_value_step" already defined with incompatible format.
..\libres\values\attrs.xml:48: Original attribute defined here.

I should also point out that anytime I include or comment out the additional jar (or res), then I do a clean project - if you don't, then the last time you compile - the files stick around and you not notice your changes.


But the APK does run fine. If I comment out (thus include) the additional jar, then again it does compile. But now commenting out (include the res), then it does not compile - and we see attributes of clock_value seeming to be already defined.

Regards,
Albert D. Kallal
Edmonton, Alberta Canada
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…