You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RAN: $HOME/.python-for-android/dists/unnamed_dist_1__armeabi-v7a/gradlew assembleDebug
STDOUT:
> Task :compileDebugJavaWithJavac FAILED
$HOME/.python-for-android/dists/unnamed_dist_1__armeabi-v7a/src/main/java/org/renpy/android/Hardware.java:162: error: cannot find symbol
PythonActivity.mActivity.getWindowManager().getDefaultDisplay().getMetrics(metrics);
^
symbol: variable mActivity
location: class PythonActivity
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
Workaround
I made a temporary fix in the python-for-android/pythonforandroid/bootstraps/service_library/build/src/main/java/org/kivy/android/PythonActivity.java by adding some lines:
package org.kivy.android;
import android.os.Bundle;
import android.app.Activity;
// Required by PythonService class
public class PythonActivity extends Activity {
public static PythonActivity mActivity = null;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
this.mActivity = this;
}
}
there is no more compilation error but I haven't yet tried the .aar to check if everything works fine.
The text was updated successfully, but these errors were encountered:
Versions
Description
I tried to build an android library (.aar) using the service_library bootstrap. But an error occurred at the end of the build with gradle.
Command:
Logs
Workaround
I made a temporary fix in the
python-for-android/pythonforandroid/bootstraps/service_library/build/src/main/java/org/kivy/android/PythonActivity.java
by adding some lines:there is no more compilation error but I haven't yet tried the .aar to check if everything works fine.
The text was updated successfully, but these errors were encountered: