new version
This commit is contained in:
parent
2527fb8847
commit
fe5421353b
56
README.md
56
README.md
|
@ -279,7 +279,9 @@ public class YourActivity extends TaActivity {
|
|||
|
||||
## Troubleshooting Guide
|
||||
|
||||
1. **Google Play Services Build Issues**: If you encounter build issues related to Google Play Services versions, consider adding the following setting to your `build.gradle` file:
|
||||
1. **Google Play Services Build Issues**
|
||||
|
||||
If you encounter build issues related to Google Play Services versions, consider adding the following setting to your `build.gradle` file:
|
||||
|
||||
```java
|
||||
android {
|
||||
|
@ -291,13 +293,17 @@ android {
|
|||
}
|
||||
```
|
||||
|
||||
2. **Java Base Access Error**: If you receive an error during the build process that reads `Unable to make field private final java.lang.String java.io.File.path accessible: module java.base does not "opens java.io" to unnamed module`, add the `--add-opens=java.base/java.io=ALL-UNNAMED` option to the `org.gradle.jvmargs` entry in your `gradle.properties` file:
|
||||
2. **Java Base Access Error**
|
||||
|
||||
If you receive an error during the build process that reads `Unable to make field private final java.lang.String java.io.File.path accessible: module java.base does not "opens java.io" to unnamed module`, add the `--add-opens=java.base/java.io=ALL-UNNAMED` option to the `org.gradle.jvmargs` entry in your `gradle.properties` file:
|
||||
|
||||
```plaintext
|
||||
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 --add-opens=java.base/java.io=ALL-UNNAMED
|
||||
```
|
||||
|
||||
3. **Orientation Change Crash**: If your application crashes when the orientation changes, add the following attributes to your activity in the Android manifest:
|
||||
3. **Orientation Change Crash**
|
||||
|
||||
If your application crashes when the orientation changes, add the following attributes to your activity in the Android manifest:
|
||||
|
||||
```plaintext
|
||||
configChanges="...|screenLayout|screenSize|smallestScreenSize"
|
||||
|
@ -305,7 +311,9 @@ configChanges="...|screenLayout|screenSize|smallestScreenSize"
|
|||
|
||||
For more information, refer to this [GitHub issue comment](https://github.com/software-mansion/react-native-screens/issues/17#issuecomment-923950313).
|
||||
|
||||
4. **Background or Awakening Crash**: If your application crashes when it moves to the background or wakes up, try adding the following to your activity:
|
||||
4. **Background or Awakening Crash**
|
||||
|
||||
If your application crashes when it moves to the background or wakes up, try adding the following to your activity:
|
||||
|
||||
```java
|
||||
@Override
|
||||
|
@ -315,7 +323,9 @@ protected void onCreate(Bundle savedInstanceState) {
|
|||
```
|
||||
For more information, refer to this [GitHub issue comment](https://github.com/software-mansion/react-native-screens/issues/17#issuecomment-424704067).
|
||||
|
||||
4. **Duplicate class**: If build fails due to `java.lang.RuntimeException: Duplicate class kotlin.collections.jdk8.CollectionsJDK8Kt ...`:
|
||||
5. **Duplicate class**
|
||||
|
||||
If build fails due to `java.lang.RuntimeException: Duplicate class kotlin.collections.jdk8.CollectionsJDK8Kt ...`:
|
||||
|
||||
Add the following line to you `app/build.gradle`
|
||||
|
||||
|
@ -329,6 +339,42 @@ dependencies {
|
|||
```
|
||||
For more information, refer to this [GitHub issue comment](https://gist.github.com/danielcshn/7aa57155d766d46c043fde015f054d40).
|
||||
|
||||
6. **Android 14 Path traversal issue**
|
||||
|
||||
For apps targeting Android 14 (API level 34) or higher, Android prevents the `Zip Path Traversal Vulnerability` in the following way: `ZipFile(String)` and `ZipInputStream.getNextEntry()` throws a `ZipException` if zip file entry names contain ".." or start with "/".
|
||||
|
||||
Apps can opt-out from this validation by calling `dalvik.system.ZipPathValidator.clearCallback()`. For more information, refer to the [official Android documentation](https://developer.android.com/about/versions/14/behavior-changes-14#zip-path-traversal).
|
||||
|
||||
As the SDK might download zips including ".." or "/" in the entry name we need to add these lines at app startup.
|
||||
|
||||
```java
|
||||
if (Build.VERSION.SDK_INT >= 34) {
|
||||
ZipPathValidator.clearCallback();
|
||||
}
|
||||
```
|
||||
|
||||
We suggest to add to you activity in the `onCreate` method.
|
||||
|
||||
```java
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_main);
|
||||
|
||||
if (Build.VERSION.SDK_INT >= 34) {
|
||||
ZipPathValidator.clearCallback();
|
||||
}
|
||||
|
||||
if(taFragment == null) {
|
||||
...
|
||||
}
|
||||
|
||||
...
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
## Authors
|
||||
Nicolò Aquilini, iOS Software developer, Tecnavia
|
||||
|
||||
Andrea Mauri, Android Software developer, Tecnavia
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
android.useAndroidX=true
|
||||
|
||||
APP_NAME=Android SDK
|
||||
APP_VERSION_NAME=3.16.08
|
||||
APP_VERSION_CODE=1729492829858
|
||||
APP_VERSION_NAME=3.16.09
|
||||
APP_VERSION_CODE=1730189840518
|
||||
ANDROID_APP_ID=com.tecnaviaapplication
|
||||
IS_ADDON=true
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue