[Android-tools-devel] Review for android-framework-23

Chirayu Desai chirayudesai1 at gmail.com
Wed Sep 7 04:21:06 UTC 2016



On 09/07/2016 01:22 AM, Markus Koschany wrote:
> On 06.09.2016 20:51, Chirayu Desai wrote:
>> Hi Markus,
>>
>>
>> On 09/06/2016 10:58 PM, Markus Koschany wrote:
>>> Hi Chirayu,
>>>
>>> I had a closer look at android-framework-23. First of all the package
>>> won't build in a clean chroot environment. (missing or wrong
>>> build-dependencies?)
>> I'm getting a build error here when trying to build using cowbuilder,
>> due to a character encoding issue. The source has non-ASCII characters.
> Hmm, that's strange because I see errors like these that indicate a
> missing/outdated build-dependency or something not on the CLASSPATH:
>
>           ^
>   symbol: class TestCase
> /build/android-framework-23-6.0.1+r55/debian/out/uiautomator/build/stubs/com/android/uiautomator/testrunner/UiAutomatorTestCase.java:9:
> error: cannot find symbol
> public  Bundle getParams() { throw new RuntimeException("Stub!"); }
>         ^
>   symbol:   class Bundle
>   location: class UiAutomatorTestCase
> /build/android-framework-23-6.0.1+r55/debian/out/uiautomator/build/stubs/com/android/uiautomator/core/UiDevice.java:7:
> error: cannot find symbol
> public  Point getDisplaySizeDp() { throw new RuntimeException("Stub!"); }
>         ^
>   symbol:   class Point
>   location: class UiDevice
> /build/android-framework-23-6.0.1+r55/debian/out/uiautomator/build/stubs/com/android/uiautomator/core/UiDevice.java:24:
> error: cannot find symbol
> public  boolean pressRecentApps() throws RemoteException { throw new
> RuntimeException("Stub!"); }
>                                          ^
>   symbol:   class RemoteException
>   location: class UiDevice
> /build/android-framework-23-6.0.1+r55/debian/out/uiautomator/build/stubs/com/android/uiautomator/core/UiDevice.java:32:
> error: cannot find symbol
> public  boolean swipe(Point[] segments, int segmentSteps) { throw new
> RuntimeException("Stub!"); }
>                       ^
>   symbol:   class Point
>   location: class UiDevice
> /build/android-framework-23-6.0.1+r55/debian/out/uiautomator/build/stubs/com/android/uiautomator/core/UiDevice.java:46:
> error: cannot find symbol
> public  void freezeRotation() throws RemoteException { throw new
> RuntimeException("Stub!"); }
These symbols actually do exist in the framework, and are compiled.
The error here probably is the failure of framework compilation due to
the UTF-8 issue I mentioned.

    /build/android-framework-23-6.0.1+r55/frameworks/base/core/java/com/android/server/backup/AccountSyncSettingsBackupHelper.java:131:
    error: unmappable character for encoding ASC
    II
                // Skip adapters that aren???t visible to the user.

                                      ^
and many more.

I've tried adding

    tasks.withType(JavaCompile) { options.encoding = 'UTF-8' }

to build.gradle, and

    Dfile.encoding=utf-8

to d/rules gradle call without success.

The latter shows up on the compile log as

    To honour the JVM settings for this build a new JVM will be forked.
    Please consider using the daemon:
    https://docs.gradle.org/2.13/userguide/gradle_daemon.html.
    Starting daemon process: workingDir =
    /build/android-framework-23-6.0.1+r55/.gradle/daemon/2.13,
    daemonArgs: [/usr/lib/jvm/java-8-openjdk-amd64/bin/java,
    -XX:MaxPermSize=256m,
    -XX:+HeapDumpOnOutOfMemoryError, -Xmx1024m, -Dfile.encoding=utf-8,
    -Duser.country=US, -Duser.language=en, -Duser.variant, -cp,
    /usr/share/gradle/lib/gradle-launcher-2.13.jar, o
    rg.gradle.launcher.daemon.bootstrap.GradleDaemon, 2.13]

but that doesn't help.

Any ideas?

>
>
>
>
>
>
> _______________________________________________
> Android-tools-devel mailing list
> Android-tools-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/android-tools-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/android-tools-devel/attachments/20160907/d4727927/attachment-0001.html>


More information about the Android-tools-devel mailing list