I am using Delphi 10.2 Tokyo. I want to develop on my new Android Pixel. After installing the necessary programs, etc, I try to compile a simple "Hello World" program, but always gets this error message:
[DCC Error] E2597 C:\Users\Public\Documents\Embarcadero\Studio\19.0\CatalogRepository\AndroidNDK-9c_x86\toolchains\arm-linux-androideabi-4.6\prebuilt\windows\bin\arm-linux-androideabi-ld.exe: fatal error: .\Android\Debug\libAndroid_Test_Proj.so: open: Permission denied
Are there any solutions?
My problem was solved my moving my project folder from the above mentioned location to a folder directly in the root (c:\mobiledevelopment).
I have tried something like this before. I had a sqlite database located in the debug folder of my default project folder. I got an error telling me that the database was locked. When I moved the databse to a folder in the rootdirectory (c:\sqlite) the problem was solved.
An explanation of this would be most wellcome!
Best regards
Lars
Related
I'm new to NativeScript and took over a project recently upgraded from NativeScript 4 to 6. Here is my environment detials:
Windows 10
Node v16.6.1
NativeScript 8.0.2
Android Studio 11 (with al
the recommended updates to date)
VS Code 1.58.2
I can create a new Native script project with "tns create" and build/run it in the simulator just fine. However, when I try to run the project the build throws the following error:
java.lang.RuntimeException: Class not found android.support.v4.view.ViewPager.OnPageChangeListener
at org.nativescript.staticbindinggenerator.Generator.getClass(Generator.java:551)
at org.nativescript.staticbindinggenerator.Generator.getInterfacesFromCache(Generator.java:534)
at org.nativescript.staticbindinggenerator.Generator.writeBinding(Generator.java:283)
at org.nativescript.staticbindinggenerator.Generator.generateBinding(Generator.java:171)
at org.nativescript.staticbindinggenerator.Generator.processRows(Generator.java:234)
at org.nativescript.staticbindinggenerator.Generator.generateBindings(Generator.java:121)
at org.nativescript.staticbindinggenerator.Generator.writeBindings(Generator.java:97)
at org.nativescript.staticbindinggenerator.Main.main(Main.java:55)
Here is the run command I'm using: "tns run android --emulator"
I have tried tons of things and searches but no luck resolving this issue.
So I had an idea and searched with a different search engine than I normally use. I did find some ideas which helped me resolved the issue.
I had previously searched in VSCode for variations on "android.support.v4.view.ViewPager.OnPageChangeListener", but only found the log file with the error. Then I learned you have to change the filter options of the find in file search otherwise the files you are looking for can be excluded from the search results. I also used Baregrep to confirm I was getting everything.
I fixed the issue by replacing all occurrences of:
android.support.v4.view.ViewPager with androidx.viewpager.widget.ViewPager
Also you may need to install widgets:npm i tns-core-modules-widgets
Since the files where I made the changes were all non-project files (many of them in the node_modules directory) there is probably something else that involves updating Node or NativeScript that may solve this as well.
If someone else figures that out, I'll be watching this thread for updates, and thanks in advance!
Fissh
I'm trying to assemble an Android build with my laptop with Ubuntu but I'm getting constantly the error on a file generated by dagger:
error: error while writing DaggerMyLibraryBookmarksComponent$com_testx_baseapplication_presentation_common_dagger_component_ApplicationComponent_userManagerRepository.class (File name too long)
This error is quite weird due that in other computers with same code and same SO I'm able to compile the project without any issue.
Has anyone experienced this issue?
The problem here was that I was using an encrypted folder in my /home partition. I just created a new folder outside the encrypted partition and the problem was solved.
This is due encrypted folders only accepts 144bytes class name files.
Same problem here!
My solution was to create a virtual image using "dd", format it in ext4 and mount it in my working folder. Worked like a charm!
Somthing like this:
https://www.tecmint.com/create-virtual-harddisk-volume-in-linux/
I am trying to build an android application with OF. The application runs in two other computers. However, it does not work on mine. I am using a mac.
I run the command "make AndroidDebug" in the project folder, and this is the error I have:
/Library/openFrameworks/addons/ofxHTTP/libs/ofxHTTP/src/PostRouteFileHandler.cpp:98:46: error: invalid use of incomplete type 'class Poco::Path'
ss << Poco::Path(formFileName).getExtension();
I have installed poco, but nothing changes afterwards.
What can I do to solve this?
Thanks
Have you included Poco/Path.h?
A forward declaration might appeared earlier (possibly in another header) without complete definition.
I'm trying to open files from C in my Android app/library. This did work at some point but stopped working after changing several things that seem completely irrelevant, and don't run until after this error occurs.
I am using the following function in C: *ppFile = fopen(fullUncFilePathAndName, "r+b"); and then again with permissions "w+b"
After each of these calls, errno = 13 (Permission Denied).
The file path is /data/data/{appFolder}/files/{filename} (got from Context.getFilesDir().getAbsolutePath(), and the working directory according to the C functions is "/". This is on internal storage, but I added the permission WRITE_EXTERNAL_STORAGE just because I had nothing else to do.
Can anyone think why reading or writing to existing and non-existent files in internal storage from an NDK library would fail with permission errors?
This problem solved itself in the best worst way possible. I deleted my app's data folder in the file browser, and then at the next build the app created its files without a hitch.
You could also clean the project and recompile from scratch.
I get this message all the time on my error log:
Could not create the view: Could not initialize class com.ibm.icu.impl.JavaTimeZone.
This situation its bad: each time when I try to open a class I get this message.
What should I do to solve this problem?
see this buddy:What does "Could not initialize class com.ibm.icu.impl.JavaTimeZone" mean?
It could be not related to android, but to your Eclipse version and current platform.
In case it is relevant, the blog post "Could not initialize class com.ibm.icu.impl.JavaTimeZone Error" (by Derek Helbert) could be helpful.
(But only for Eclipse 3.6 on MacOs)
If you are having a serious pain trying to run Eclipse Helios in Mac OS x 10.5.8 and keep getting errors such as the following:
java.lang.NoClassDefFoundError
--or--
An internal error occurred during: "Could not initialize class com.ibm.icu.impl.JavaTimeZone error".
Here is an easy solution:
Edit eclipse.ini with your favorite text editor and add a line at the end "-Dcom.ibm.icu.util.TimeZone.DefaultTimeZoneType=ICU".
It's inside Eclipse.app/Contents/MacOS/eclipse.ini.
Another solution is the following:
Decompress the com.ibm.icu_4.0.1.v20090822.jar file in the eclipse/plugins folder to any directory you like.
If you cannot find the exact version, just decompress the IBM ICU JAR that's shipped with your version of Eclipse.
In that directory, open the file com/ibm/icu/ICUConfig.properties
Replace
com.ibm.icu.util.TimeZone.DefaultTimeZoneType = JDK
with
com.ibm.icu.util.TimeZone.DefaultTimeZoneType = ICU
Recompress the com.ibm.icu_4.0.1.v20090822.jar file in the eclipse/plugins folder with the modified file
However, it has been pointed out that editing the jar makes it unsigned.
Ran into the same problem with Ubuntu 12.04 and fixed it with:
apt-get --reinstall install tzdata-java