Android Question Question for SecureMyText - AES256PasswordBasedEncryption-Decryption

hatzisn

Expert
Licensed User
Longtime User
Hi everyone and especially DonManfred,

this question refers to the thread found here:
https://www.b4x.com/android/forum/t...s256passwordbasedencryption-decryption.68920/


Even if I add this library to my project when I try to compile I get this error:

B4X:
B4A Version: 7.80
Parsing code.    (0.02s)
Compiling code.    (0.12s)
Compiling layouts code.    (0.01s)
Organizing libraries.    (0.65s)
Generating R file.    Error
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:font
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontStyle
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontWeight


My Manifest:
B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="19"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")

I have installed the Android Support Repository revision 47.


Is something wrong with the B4A Version?

Thanks in advance...
 

DonManfred

Expert
Licensed User
Longtime User
Sounds like you are using an old android.jar

Follow the instructions here

Installation
See Video Tutorial
1. Java JDK v8
  • Open the Java 8 JDK download link.
  • Check the Accept License Agreement button.
  • Select "Windows x86 (32-bit) or Windows x64" in the platforms list.
  • Download the file and install it.
2. Android SDK
3. B4A
  • Download B4A Trial Version
  • Open B4A.
  • Choose Tools > Configure Paths.
  • Set the path to "javac.exe" if it is empty (C:\Program Files\Java\jdk1.8.0_102\bin\javac.exe).
  • Click on Open Sdk Manager button.
  • Set the path to "sdkmanager.bat" (C:\Android\tools\bin\sdkmanager.bat) and install all recommended items.
  • Read and accept the licenses when asked for.
  • Return to B4A and set the path to "android.jar" (C:\Android\platforms\android-27\android.jar).
 
Upvote 0

hatzisn

Expert
Licensed User
Longtime User
Hi DonManfred,

thanks for the quick reply...
Everything was set and now it is working Ok. All I had to do is to turn the path from Android-21 to Android-27.
I wanted to ask you also another thing you or anyone else that might know.

When I press the SDK Manager in B4A I get what is expected.

If I press the AVD Manager in B4A I get the following. Any ideas on what is going wrong?
I also have istalled the JAVA 8 JDK...
Could it be that my path to android is C:\B4A\android-sdk\.....


 
Upvote 0

hatzisn

Expert
Licensed User
Longtime User
Now I noticed I have another problem too. If I start the previous AVD Manager from Start Menu it does not start at all. Any ideas for this too?
 
Upvote 0

hatzisn

Expert
Licensed User
Longtime User
Hi Erel,

thanks for the reply. The "Intel x86 Emulator Accelerator (HAXM Installer)" is installed as I see in the SDK Manager of B4A
and its version is 6.2.1 .

Any new ideas?
 
Upvote 0

hatzisn

Expert
Licensed User
Longtime User
Done Erel,

Downloaded the .jar and replaced the original. Also upgraded to HAXM 7.0.0. I downloaded the installation
and installed it from the .bat. By the way the button in the B4A AVD Manager got me in a link that changed and
I had to search in the search area for HAXM. I got a successful installation message but still in B4A SDK
Manager 6.2.1 is reported as the HAXM installation version. Still getting the same message. What can I do more?

Thanks in advance
 
Upvote 0

hatzisn

Expert
Licensed User
Longtime User
Hi DonManfred, I wish my AVD Manager worked too like yours do and I am trying to
work it out with Erel but I cannot get it to work yet... The following sentence refers to
Erel. My processor is i3. Could this be a problem?
 
Upvote 0

hatzisn

Expert
Licensed User
Longtime User
It doesn't matter Erel. I just found a solution. All I had to do is delete completely the Tools folder (after I created a rar of it) and then download the tools from the link and unzip it there. Everything works like a charm now. Thanks anyway and thanks for accepting me as a contact in LinkedIn yesterday.

Have a nice day.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…