Echec de la création de l'application Android .
Ligne de commande : "C:\Program Files\Java\jdk-10.0.2\bin\java.exe" -Duser.dir="C:\Mes Projets Mobile\EcouteReceptionSMS\Android\gen" "-Dorg.gradle.appname=C:\Mes Projets Mobile\EcouteReceptionSMS\Android\gen" -classpath "C:\Users\Mr KABA\AppData\Roaming\PC SOFT\25.0\Android\Gradle\lib\gradle-launcher-5.4.1.jar" org.gradle.launcher.GradleMain assembleRelease -b "C:\Mes Projets Mobile\EcouteReceptionSMS\Android\gen\build.gradle"
Erreur retournée :
:compileReleaseJavaWithJavac FAILED
C:\Mes Projets Mobile\EcouteReceptionSMS\Android\gen\src\com\masociete\ecoutereceptionsms\wdgen\GWDCPCOL_RECEPTION_SMS.java:27: error: cannot find symbol
import android.support.v4.app.ActivityCompat;
^
symbol: class ActivityCompat
location: package android.support.v4.app
C:\Mes Projets Mobile\EcouteReceptionSMS\Android\gen\src\com\masociete\ecoutereceptionsms\wdgen\GWDCPCOL_RECEPTION_SMS.java:28: error: package android.support.v4.content does not exist
import android.support.v4.content.ContextCompat;
^
C:\Mes Projets Mobile\EcouteReceptionSMS\Android\gen\src\com\masociete\ecoutereceptionsms\wdgen\GWDCPCOL_RECEPTION_SMS.java:101: error: cannot find symbol
if (ContextCompat.checkSelfPermission(getActiviteEnCours(), permission.RECEIVE_SMS) != PackageManager.PERMISSION_GRANTED) {
^
symbol: variable ContextCompat
location: class GWDCPCOL_RECEPTION_SMS
C:\Mes Projets Mobile\EcouteReceptionSMS\Android\gen\src\com\masociete\ecoutereceptionsms\wdgen\GWDCPCOL_RECEPTION_SMS.java:104: error: cannot find symbol
ActivityCompat.requestPermissions(getActiviteEnCours(), new String[]{permission.RECEIVE_SMS}, PERMISSIONS_REQUEST_RECEIVE_SMS);
^
symbol: variable ActivityCompat
location: class GWDCPCOL_RECEPTION_SMS
Note: C:\Mes Projets Mobile\EcouteReceptionSMS\Android\gen\src\com\masociete\ecoutereceptionsms\wdgen\GWDCPCOL_RECEPTION_SMS.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\Mes Projets Mobile\EcouteReceptionSMS\Android\gen\src\com\masociete\ecoutereceptionsms\wdgen\GWDFFEN_Accueil.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at
https://help.gradle.org
BUILD FAILED in 5s
10 actionable tasks: 6 executed, 4 up-to-date
Partager