[Android-development] Basic problem import org.qtproject.qt5.android

Harri Pasanen harri at mpaja.com
Fri Jan 9 10:16:05 CET 2015


On 09/01/2015 09:59, Eskil Abrahamsen Blomfeldt wrote:
> On 01/09/2015 09:56 AM, Harri Pasanen wrote:
>>
>> I'm playing with some Java code and hit a very elementary error:
>>
>> JavaTalker.java:4: error: cannot find symbol
>>
>> [javac] import org.qtproject.qt5.android;
>>
>> [javac] ^
>>
>> [javac] symbol: class android
>>
>>
>>
>> So something in my project config is off, the classpath seems wrong.
>>
>>
>> This is with Android for x86, Qt 5.4.1 build snapshot.
>>
>>
>> Any hints where to look?
>>
>
> org.qtproject.qt5.android is not a class. You want:
>
>     import org.qtproject.qt5.android.*;
>
> to import all classes in that package.

Thanks, but I had a typo in the example problem, the following should be
the real deal:

ViewHtml.java:3: error: cannot find symbol

[javac] import org.qtproject.qt5.android.QtNative;

[javac] ^

[javac] symbol: class QtNative

[javac] location: package org.qtproject.qt5.android


When I look at android-build directory, I see

ls -lR android-build/src/org/qtproject/qt5/android/
android-build/src/org/qtproject/qt5/android:
total 4
drwxrwxr-x 2 harri harri 4096 janv.  9 10:05 bindings

android-build/src/org/qtproject/qt5/android/bindings:
total 76
-rw-r--r-- 1 harri harri 66117 janv.  9 10:05 QtActivity.java
-rw-r--r-- 1 harri harri  6725 janv.  9 10:05 QtApplication.java

Should the QC build have copied QtNative.java to android dir?
Btw. any reason why the files there are not symlinks?

Confused,

Harri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/android-development/attachments/20150109/c054f68a/attachment.html>


More information about the Android-development mailing list