Troubleshooting Invalid or Missing x File Change the Platforms of your new entry to Android only.Change the Remote Path of your new entry to classes\.Click the button and add your custom x file to the list of deployment files.Uncheck the checkbox of the default x file.Select Project > Deployment to open the Deployment Manager.To configure your Android application to be deployed with your custom x file: ![]() For more information, see Invalid or Missing x File below. Android applications must always include a valid x file. Deploying the x File Warning: Follow these steps carefully. The RAD Studio debugging features are only available if the deployed x file contains the debug versions of the included RAD Studio built-in Java libraries. For example:ĭx -dex -output="x" "C:\Path\To\Library1.jar" "C:\Path\To\Library2.jar" Note: You should create both a debug and a release version of your x file. Run dx with the -dex parameter, the -output parameter with the output path of the x file as its argument, and a space-separated list of paths to the JAR files that you want to include in the generated x file. You can find this command-line tool at C:\Users\Public\Documents\Embarcadero\Studio\21.0\CatalogRepository\AndroidSDK. To create a x file, you need to use the command-line tool dx. Once you have determined which JAR files your Android applications need, you can create a x file from them. Warning: You must always include the Java libraries that are Required by RAD Studio in your custom x file. You can either include all the RAD Studio built-in Java libraries in your x file or determine, based on the information in the table above, which RAD Studio built-in Java libraries your applications need. You can find these JAR files in the following folders within the RAD Studio installation folder ( C:\Program Files (x86)\Embarcadero\Studio\21.0): The following table lists the dependencies of the RAD Studio built-in Java libraries: If Google Play Application Licensing had its own dependencies, you would have to include those as well. For example, if your applications need the Google Play Services Java library, your x file must also contain the JAR file of the Google Play Application Licensing Java library, because Google Play Application Licensing is a dependency of Google Play Services. This affects the RAD Studio built-in Java libraries as well. ![]() To create your new x file, you need the JAR files of every Java library that your applications use, as well as the JAR files of the libraries on which those libraries depend. To use your own Java libraries in your RAD Studio applications, you must create a new x file that includes both those RAD Studio built-in Java libraries that your application needs and your own Java libraries.ĭetermining Which JAR Files to Include in Your x File When you deploy an application for Android, RAD Studio includes a x file that contains the RAD Studio built-in Java libraries. This file contains the Java libraries that the application uses. The x file is a Dalvik Executable file that all Android applications must have.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |