Compile v1.3 issue on Qt 5.13.2
Closed this issue · 7 comments
My first time compiling a library of sort so please be nice :)
Running on Qt creator on Windows, trying to build for Qt 5.13.2 (ARMv7), Android SDK 26 and NDK 21, QtAndroidTools is in my project directory and my .pro file is like this, Qt creator finds that fine (I only really need it for notification and battery):
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android DEFINES += \ QTAT_APP_PERMISSIONS \ QTAT_APK_EXPANSION_FILES \ QTAT_APK_INFO \ QTAT_SCREEN \ QTAT_SYSTEM \ QTAT_BATTERY_STATE \ QTAT_SIGNAL_STRENGTH \ QTAT_IMAGES \ QTAT_NOTIFICATION \ QTAT_ADMOB_BANNER \ QTAT_ADMOB_INTERSTITIAL \ QTAT_ADMOB_REWARDED_VIDEO \ QTAT_PLAY_STORE \ QTAT_GOOGLE_ACCOUNT \ QTAT_GOOGLE_DRIVE \ QTAT_SHARING include(QtAndroidTools/QtAndroidTools.pri)
When I try compile this inside my project I get an unholy list of errors (for Debug and Release):
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobBanner.java:27: error: package com.google.android.gms.ads does not exist
import com.google.android.gms.ads.AdRequest;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobBanner.java:28: error: package com.google.android.gms.ads does not exist
import com.google.android.gms.ads.AdSize;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobBanner.java:29: error: package com.google.android.gms.ads does not exist
import com.google.android.gms.ads.AdView;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobBanner.java:30: error: package com.google.android.gms.ads does not exist
import com.google.android.gms.ads.AdListener;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobBanner.java:290: error: cannot find symbol
private class BannerListener extends AdListener
^
symbol: class AdListener
location: class AndroidAdMobBanner
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobBanner.java:48: error: cannot find symbol
private AdView mBannerView = null;
^
symbol: class AdView
location: class AndroidAdMobBanner
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobInterstitial.java:27: error: package com.google.android.gms.ads does not exist
import com.google.android.gms.ads.AdRequest;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobInterstitial.java:28: error: package com.google.android.gms.ads does not exist
import com.google.android.gms.ads.AdListener;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobInterstitial.java:29: error: package com.google.android.gms.ads does not exist
import com.google.android.gms.ads.InterstitialAd;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobInterstitial.java:161: error: cannot find symbol
private class InterstitialListener extends AdListener
^
symbol: class AdListener
location: class AndroidAdMobInterstitial
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobInterstitial.java:46: error: cannot find symbol
private InterstitialAd mInterstitialAd = null;
^
symbol: class InterstitialAd
location: class AndroidAdMobInterstitial
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobRewardedVideo.java:27: error: package com.google.android.gms.ads does not exist
import com.google.android.gms.ads.AdRequest;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobRewardedVideo.java:28: error: package com.google.android.gms.ads does not exist
import com.google.android.gms.ads.MobileAds;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobRewardedVideo.java:29: error: package com.google.android.gms.ads.reward does not exist
import com.google.android.gms.ads.reward.RewardItem;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobRewardedVideo.java:30: error: package com.google.android.gms.ads.reward does not exist
import com.google.android.gms.ads.reward.RewardedVideoAd;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobRewardedVideo.java:31: error: package com.google.android.gms.ads.reward does not exist
import com.google.android.gms.ads.reward.RewardedVideoAdListener;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobRewardedVideo.java:143: error: cannot find symbol
private class RewardedVideoListener implements RewardedVideoAdListener
^
symbol: class RewardedVideoAdListener
location: class AndroidAdMobRewardedVideo
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobRewardedVideo.java:42: error: cannot find symbol
private RewardedVideoAd mRewardedVideoAd = null;
^
symbol: class RewardedVideoAd
location: class AndroidAdMobRewardedVideo
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobRewardedVideo.java:146: error: cannot find symbol
public void onRewarded(RewardItem reward)
^
symbol: class RewardItem
location: class AndroidAdMobRewardedVideo.RewardedVideoListener
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\google\android\vending\expansion\downloader\impl\BroadcastDownloaderClient.java:7: error: package android.support.v4.content does not exist
import android.support.v4.content.LocalBroadcastManager;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleAccount.java:38: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleAccount.java:39: error: package com.google.android.gms.auth.api.signin does not exist
import com.google.android.gms.auth.api.signin.GoogleSignIn;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleAccount.java:40: error: package com.google.android.gms.auth.api.signin does not exist
import com.google.android.gms.auth.api.signin.GoogleSignInAccount;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleAccount.java:41: error: package com.google.android.gms.auth.api.signin does not exist
import com.google.android.gms.auth.api.signin.GoogleSignInClient;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleAccount.java:42: error: package com.google.android.gms.auth.api.signin does not exist
import com.google.android.gms.auth.api.signin.GoogleSignInOptions;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleAccount.java:43: error: package com.google.android.gms.auth.api.signin does not exist
import com.google.android.gms.auth.api.signin.GoogleSignInStatusCodes;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleAccount.java:44: error: package com.google.android.gms.common does not exist
import com.google.android.gms.common.Scopes;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleAccount.java:45: error: package com.google.android.gms.common does not exist
import com.google.android.gms.common.SignInButton;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleAccount.java:46: error: package com.google.android.gms.common.api does not exist
import com.google.android.gms.common.api.ApiException;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleAccount.java:47: error: package com.google.android.gms.common.api does not exist
import com.google.android.gms.common.api.Scope;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleAccount.java:48: error: package com.google.android.gms.tasks does not exist
import com.google.android.gms.tasks.OnCompleteListener;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleAccount.java:49: error: package com.google.android.gms.tasks does not exist
import com.google.android.gms.tasks.Task;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleAccount.java:58: error: cannot find symbol
private GoogleSignInClient mGoogleSignInClient = null;
^
symbol: class GoogleSignInClient
location: class AndroidGoogleAccount
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleAccount.java:65: error: cannot find symbol
private GoogleSignInClient getSignInClient(String ScopeName)
^
symbol: class GoogleSignInClient
location: class AndroidGoogleAccount
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleAccount.java:173: error: cannot find symbol
private boolean loadSignedInAccountInfo(final GoogleSignInAccount SignedInAccount)
^
symbol: class GoogleSignInAccount
location: class AndroidGoogleAccount
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleAccount.java:236: error: cannot find symbol
private class SignInAccountListener implements OnCompleteListener<GoogleSignInAccount>
^
symbol: class OnCompleteListener
location: class AndroidGoogleAccount
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleAccount.java:236: error: cannot find symbol
private class SignInAccountListener implements OnCompleteListener<GoogleSignInAccount>
^
symbol: class GoogleSignInAccount
location: class AndroidGoogleAccount
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleAccount.java:239: error: cannot find symbol
public void onComplete(@NonNull Task<GoogleSignInAccount> SignInTask)
^
symbol: class Task
location: class AndroidGoogleAccount.SignInAccountListener
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleAccount.java:239: error: cannot find symbol
public void onComplete(@NonNull Task<GoogleSignInAccount> SignInTask)
^
symbol: class GoogleSignInAccount
location: class AndroidGoogleAccount.SignInAccountListener
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleAccount.java:266: error: cannot find symbol
private class SignOutAccountListener implements OnCompleteListener<Void>
^
symbol: class OnCompleteListener
location: class AndroidGoogleAccount
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleAccount.java:269: error: cannot find symbol
public void onComplete(@NonNull Task<Void> SignOutTask)
^
symbol: class Task
location: class AndroidGoogleAccount.SignOutAccountListener
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleDrive.java:37: error: package com.google.android.gms.auth.api.signin does not exist
import com.google.android.gms.auth.api.signin.GoogleSignIn;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleDrive.java:38: error: package com.google.android.gms.auth.api.signin does not exist
import com.google.android.gms.auth.api.signin.GoogleSignInClient;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleDrive.java:39: error: package com.google.android.gms.auth.api.signin does not exist
import com.google.android.gms.auth.api.signin.GoogleSignInOptions;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleDrive.java:40: error: package com.google.android.gms.auth.api.signin does not exist
import com.google.android.gms.auth.api.signin.GoogleSignInAccount;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleDrive.java:41: error: package com.google.android.gms.common.api does not exist
import com.google.android.gms.common.api.Scope;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleDrive.java:42: error: package com.google.api.client.extensions.android.http does not exist
import com.google.api.client.extensions.android.http.AndroidHttp;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleDrive.java:43: error: package com.google.api.client.googleapis.extensions.android.gms.auth does not exist
import com.google.api.client.googleapis.extensions.android.gms.auth.UserRecoverableAuthIOException;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleDrive.java:44: error: package com.google.api.client.googleapis.extensions.android.gms.auth does not exist
import com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleDrive.java:45: error: package com.google.api.client.googleapis.media does not exist
import com.google.api.client.googleapis.media.MediaHttpDownloaderProgressListener;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleDrive.java:46: error: package com.google.api.client.googleapis.media does not exist
import com.google.api.client.googleapis.media.MediaHttpDownloader;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleDrive.java:47: error: package com.google.api.client.googleapis.media does not exist
import com.google.api.client.googleapis.media.MediaHttpUploaderProgressListener;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleDrive.java:48: error: package com.google.api.client.googleapis.media does not exist
import com.google.api.client.googleapis.media.MediaHttpUploader;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleDrive.java:49: error: package com.google.api.client.json.gson does not exist
import com.google.api.client.json.gson.GsonFactory;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleDrive.java:50: error: package com.google.api.client.http does not exist
import com.google.api.client.http.FileContent;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleDrive.java:51: error: package com.google.api.services.drive does not exist
import com.google.api.services.drive.Drive;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleDrive.java:52: error: package com.google.api.services.drive does not exist
import com.google.api.services.drive.DriveScopes;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleDrive.java:53: error: package com.google.api.services.drive.model does not exist
import com.google.api.services.drive.model.File;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleDrive.java:54: error: package com.google.api.services.drive.model does not exist
import com.google.api.services.drive.model.FileList;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleDrive.java:67: error: cannot find symbol
private Drive mDriveService = null;
^
symbol: class Drive
location: class AndroidGoogleDrive
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleDrive.java:205: error: cannot find symbol
public File getFileMetadata(String FileId, String Fields)
^
symbol: class File
location: class AndroidGoogleDrive
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleDrive.java:355: error: cannot find symbol
private class FileDownloadProgressListener implements MediaHttpDownloaderProgressListener
^
symbol: class MediaHttpDownloaderProgressListener
location: class AndroidGoogleDrive
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleDrive.java:357: error: cannot find symbol
public void progressChanged(MediaHttpDownloader downloader)
^
symbol: class MediaHttpDownloader
location: class AndroidGoogleDrive.FileDownloadProgressListener
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleDrive.java:371: error: cannot find symbol
private class FileUploadProgressListener implements MediaHttpUploaderProgressListener
^
symbol: class MediaHttpUploaderProgressListener
location: class AndroidGoogleDrive
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleDrive.java:373: error: cannot find symbol
public void progressChanged(MediaHttpUploader uploader) throws IOException
^
symbol: class MediaHttpUploader
location: class AndroidGoogleDrive.FileUploadProgressListener
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidNotification.java:34: error: package android.support.v4.app does not exist
import android.support.v4.app.NotificationManagerCompat;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidNotification.java:35: error: package android.support.v4.app does not exist
import android.support.v4.app.NotificationCompat;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidNotification.java:39: error: package NotificationCompat does not exist
private NotificationCompat.Builder mAppNotification;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidSharing.java:36: error: package android.support.v4.content does not exist
import android.support.v4.content.FileProvider;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\google\android\vending\expansion\downloader\Helpers.java:25: error: package android.support.annotation does not exist
import android.support.annotation.StringRes;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\google\android\vending\expansion\downloader\impl\ClientProxy.java:6: error: package android.support.v4.content does not exist
import android.support.v4.content.LocalBroadcastManager;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\google\android\vending\expansion\downloader\impl\ClientProxy.java:17: error: cannot find symbol
private LocalBroadcastManager mBroadcastManager;
^
symbol: class LocalBroadcastManager
location: class ClientProxy
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\google\android\vending\expansion\downloader\impl\DownloadNotification.java:22: error: package android.support.annotation does not exist
import android.support.annotation.StringRes;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\google\android\vending\expansion\downloader\impl\DownloadNotification.java:23: error: package android.support.v4.app does not exist
import android.support.v4.app.NotificationCompat;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\google\android\vending\expansion\downloader\impl\DownloadNotification.java:51: error: package NotificationCompat does not exist
private NotificationCompat.Builder mActiveDownloadBuilder;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\google\android\vending\expansion\downloader\impl\DownloadNotification.java:52: error: package NotificationCompat does not exist
private NotificationCompat.Builder mBuilder;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\google\android\vending\expansion\downloader\impl\DownloadNotification.java:53: error: package NotificationCompat does not exist
private NotificationCompat.Builder mCurrentBuilder;
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleAccount.java:239: error: cannot find symbol
public void onComplete(@NonNull Task<GoogleSignInAccount> SignInTask)
^
symbol: class NonNull
location: class AndroidGoogleAccount.SignInAccountListener
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidGoogleAccount.java:269: error: cannot find symbol
public void onComplete(@NonNull Task<Void> SignOutTask)
^
symbol: class NonNull
location: class AndroidGoogleAccount.SignOutAccountListener
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\google\android\vending\expansion\downloader\Helpers.java:319: error: cannot find symbol
@StringRes
^
symbol: class StringRes
location: class Helpers
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobBanner.java:81: error: cannot find symbol
AdSize BannerSize = AdSize.BANNER;
^
symbol: class AdSize
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobBanner.java:81: error: cannot find symbol
AdSize BannerSize = AdSize.BANNER;
^
symbol: variable AdSize
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobBanner.java:86: error: cannot find symbol
BannerSize = AdSize.BANNER;
^
symbol: variable AdSize
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobBanner.java:89: error: cannot find symbol
BannerSize = AdSize.FULL_BANNER;
^
symbol: variable AdSize
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobBanner.java:92: error: cannot find symbol
BannerSize = AdSize.LARGE_BANNER;
^
symbol: variable AdSize
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobBanner.java:95: error: cannot find symbol
BannerSize = AdSize.MEDIUM_RECTANGLE;
^
symbol: variable AdSize
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobBanner.java:98: error: cannot find symbol
BannerSize = AdSize.SMART_BANNER;
^
symbol: variable AdSize
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobBanner.java:101: error: cannot find symbol
BannerSize = AdSize.WIDE_SKYSCRAPER;
^
symbol: variable AdSize
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobBanner.java:166: error: package AdRequest does not exist
AdRequest.Builder BannerRequest = new AdRequest.Builder();
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobBanner.java:166: error: package AdRequest does not exist
AdRequest.Builder BannerRequest = new AdRequest.Builder();
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobBanner.java:259: error: cannot find symbol
mBannerView = new AdView(mActivityInstance);
^
symbol: class AdView
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobBanner.java:314: error: cannot find symbol
case AdRequest.ERROR_CODE_INTERNAL_ERROR:
^
symbol: variable AdRequest
location: class AndroidAdMobBanner.BannerListener
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobBanner.java:317: error: cannot find symbol
case AdRequest.ERROR_CODE_NETWORK_ERROR:
^
symbol: variable AdRequest
location: class AndroidAdMobBanner.BannerListener
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobBanner.java:320: error: cannot find symbol
case AdRequest.ERROR_CODE_INVALID_REQUEST:
^
symbol: variable AdRequest
location: class AndroidAdMobBanner.BannerListener
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobBanner.java:323: error: cannot find symbol
case AdRequest.ERROR_CODE_NO_FILL:
^
symbol: variable AdRequest
location: class AndroidAdMobBanner.BannerListener
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobInterstitial.java:84: error: package AdRequest does not exist
AdRequest.Builder InterstitialRequest = new AdRequest.Builder();
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobInterstitial.java:84: error: package AdRequest does not exist
AdRequest.Builder InterstitialRequest = new AdRequest.Builder();
^
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobInterstitial.java:136: error: cannot find symbol
mInterstitialAd = new InterstitialAd(mActivityInstance);
^
symbol: class InterstitialAd
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobInterstitial.java:185: error: cannot find symbol
case AdRequest.ERROR_CODE_INTERNAL_ERROR:
^
symbol: variable AdRequest
location: class AndroidAdMobInterstitial.InterstitialListener
C:\Users\pauls\build-WearMusic-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\src\com\falsinsoft\qtandroidtools\AndroidAdMobInterstitial.java:188: error: cannot find symbol
case AdRequest.ERROR_CODE_NETWORK_ERROR:
^
symbol: variable AdRequest
location: class AndroidAdMobInterstitial.InterstitialListener
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
100 errors
:compileDebugJavaWithJavac FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
Kind of stumped me as I'm new to Android development
Hi,
Have you read the documentation? In particular here:
https://falsinsoft.github.io/QtAndroidTools/Documentation/#AdMobBanner
For compile the whole project you have to download some additional Android SDK components. But if you need only notifications and battery you don't need to download the components described. I suggest to try develop a test app by using only QTAT_BATTERY_STATE and QTAT_NOTIFICATION labels thats are the only tools you need...
Hi,
Have you read the documentation? In particular here:https://falsinsoft.github.io/QtAndroidTools/Documentation/#AdMobBanner
For compile the whole project you have to download some additional Android SDK components. But if you need only notifications and battery you don't need to download the components described. I suggest to try develop a test app by using only QTAT_BATTERY_STATE and QTAT_NOTIFICATION labels thats are the only tools you need...
I should probably read that better haha, so if I just want battery and notifications I can simply leave defines like this or would i need to remove something else?
DEFINES += \ QTAT_BATTERY_STATE \ QTAT_NOTIFICATION
Well, I developed the library with use of these labels for include/exclude the tools code you need only, excluding all the remaining tools code not planned to use. In your project include only the tool sources connected to your use. However the demo app is currently designed to use, by default, all the tools than I guess if you leave only the two labels will not compile. I'll try to modify the demo app by show only the included tools but I need a bit of time to make such change...
I've downloaded the stuff required for the full example and updated my gradle, now it's giving me this:
`FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':processDebugResources'.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
Android resource linking failed
C:\Users\pauls\Desktop\QtAndroidTools-1.3\build-QtAndroidToolsDemo-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\android-build\AndroidManifest.xml:43:13-122: AAPT: error: resource array/load_local_libs (aka com.falsinsoft.QtAndroidToolsDemo:array/load_local_libs) not found.`
This is another "problem". Qt version 5.14 and above changed the android manifest params for support the new creation of .aab file containing all the version arm32, arm 64, x86 and x86_64 inside. Since you are compiling using Qt version 5.13 you have to switch back changes before this commit:
Ah, not sure why I didn't think of that myself; thank you
It's all compiling as whole now so I'll close this issue, thanks for the help.