I'm using Qt 5.4. I imported SDK & NDK.
Actually, I was trying to use multiple line notification and I used this line in java file:
customMainActivity.java:
import android.support.v4.app.NotificationCompat;
NotificationCompat.Builder builder = new NotificationCompat.Builder(
context);
I'm getting an error :
package android.support.v4.app does not exist
I read it and it and added android-support-v4.jar and android-support-v7-appcompat.jar but I don't know how to fix it in Qt.
Add Google's Maven repository to build.gradle https://developer.android.com/studio/build/dependencies#google-maven
allprojects { repositories { jcenter() maven { url 'https://maven.google.com' } } }
Add dependency to support-v4 library to build.gradle
dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile "com.android.support:support-v4:24.+" }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With